#include #include int solve(int a, int b){ char sa[100]={'\0'}, sb[100]={'\0'}; sprintf(sa, "%d", a); sprintf(sb, "%d", b); int na=strlen(sa), nb=strlen(sb); if(na==nb){ return strcmp(sa, sb); }else{ return solve(na, nb); } } int main() { char c1='0'+12, c2='0'+14; int n; scanf("%d", &n); for(int i=0; i