#include <stdio.h>
int main(){
int num;
scanf("%d", &num);
int hundredPlace = num / 100;
int tenPlace = (num - (num / 100)*100) / 10;
int onePlace = (num - (num / 100)*100) % 10;
if (onePlace == 0 && tenPlace == 0) {
printf("%d\n", hundredPlace);
}
else if (onePlace == 0) {
printf("%d%d\n", tenPlace, hundredPlace);
}
else {
printf("%d%d%d\n", onePlace, tenPlace, hundredPlace);
}
return 0;
}