void switch_num(int n) { if (n > 0) { switch_num(n/6); printf("%d",n%6); } } int main() { int n = 0; scanf("%d", &n); switch_num(n); return 0; }