#include #include #include #define MAX 1000000000 using namespace std; bool check(long long x){ string s = to_string(x); for(int i=0; i> n; string s = to_string(n); for(int i=0; i