#include <stdio.h>
main ()
{ int n, cj, cd, cs;
printf ("Unesite broj:\n");
scanf ("%d", &n);
cj = n%10;
cd = n/10%10;
cs = n/100%10;
n = n/1000 * 1000 + cj * 100 + cd * 10 + cs;
return 0;
}