#include
#include
using namespace std;
int convert(char str[], int n)
{
if(str[0]==’\0’)
return 0;
int d=str[n-1]-'0';
return convert(str,n-1)*10+d;
}
int main() {
char str[11];
cin>>str;
cout<<convert(str,strlen(str));
return 0;
}