#include <iostream>
using namespace std;
int main() {
// your code goes here
int n = 123456;
while (n != 0) {
cout << n % 10 << endl;
n = n/10;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglpbnQgbiA9IDEyMzQ1NjsKCgl3aGlsZSAobiAhPSAwKSB7CgkgICAgY291dCA8PCBuICUgMTAgPDwgZW5kbDsKCSAgICBuID0gbi8xMDsKCX0KCglyZXR1cm4gMDsKfQ==