#include <stdio.h> void contrary(int x){ if(x==0){ return; } printf("%d", x%10); contrary(x/10); } int main(){ int n; scanf("%d", &n); contrary(n); }