#include <stdio.h>

int main(void) {
	
	int x = 123;

    while (x > 0){
        printf("%d", x % 10);
        x = x /10;
    }
    
	return 0;
}
