#include <iostream>
int main( )
{
int n = 15396042 ;
std:: cout << "number: " << n << '\n ' ;
for ( int pow = 0 ; n > 0 ; ++ pow )
{
int digit = n% 10 ; // least significant (rightmost) digit
n / = 10 ; // divide by 10 to remove the rightmost digit
std:: cout << "digit at 10^" << pow << ": " << digit << '\n ' ;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgICBpbnQgbiA9IDE1Mzk2MDQyIDsKICAgIHN0ZDo6Y291dCA8PCAibnVtYmVyOiAiIDw8IG4gPDwgJ1xuJyA7CgogICAgZm9yKCBpbnQgcG93ID0gMCA7IG4gPiAwIDsgKytwb3cgKQogICAgewogICAgICAgIGludCBkaWdpdCA9IG4lMTAgOyAvLyBsZWFzdCBzaWduaWZpY2FudCAocmlnaHRtb3N0KSBkaWdpdAogICAgICAgIG4gLz0gMTAgOyAvLyBkaXZpZGUgYnkgMTAgdG8gcmVtb3ZlIHRoZSByaWdodG1vc3QgZGlnaXQKICAgICAgICBzdGQ6OmNvdXQgPDwgImRpZ2l0IGF0IDEwXiIgPDwgcG93IDw8ICI6ICIgPDwgZGlnaXQgPDwgJ1xuJyA7CiAgICB9Cn0K