### Chef and Dynamo

This is an interactive problem. An N-perfect number is defined as a positive integer with at most N digits (in decimal representation without leading zeros) ― that is, X is an N-perfect number if 0 Chef has a friend named Dynamo, who is a legendary magician. Chef learned a new magic trick from him and…

Details