#include #include #include #include #include #include #include #include #include #include #include #include #include #define CK(N,A,B) (A<=N&&N>N; string ans = ""; while(N/7 != 0 || N%7 != 0){ ans.insert(0,to_string(N%7)); N /= 7; } cout<