#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f,g;
cin>>a;
b=a+1;
d=b+1;
e=d+1;
f=e+1;
g=a+b*10+d*100+e*1000+f*10000;
printf("%d",g);
}
/**************************************************************
Problem: 1621
User: toughuatao1
Language: C++
Result: Accepted
Time:7 ms
Memory:2072 kb
****************************************************************/