#include <stdio.h>
int main(void) {
// your code goes here
int num=4562,rev=0;
while(num!=0){
int digit=num%10;
rev*=10+digit;
num=num/10;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglpbnQgbnVtPTQ1NjIscmV2PTA7CgkKCXdoaWxlKG51bSE9MCl7CgkJaW50IGRpZ2l0PW51bSUxMDsKCQlyZXYqPTEwK2RpZ2l0OwoJCW51bT1udW0vMTA7Cgl9CglwcmludGYoIiVkIixyZXYpOwoJcmV0dXJuIDA7Cn0K