#include<iostream>
using namespace std;
void main()
{
int n,i,j=;
int a[];
cin>>n;
i=n;
while(i)
{
a[j]=i%;
i/=;
j++; }
for(i=j-;i>=;i--)
cout<<a[i];
cout<<endl;
}
#include<iostream>
using namespace std;
void main()
{
int n,i,j=;
int a[];
cin>>n;
i=n;
while(i)
{
a[j]=i%;
i/=;
j++; }
for(i=j-;i>=;i--)
cout<<a[i];
cout<<endl;
}