#include<bits/stdc++.h>
using namespace std;
int main()
{
int g,s,b,q,w,h;
cin>>g;
s=g+1;
b=s+1;
q=b+1;
w=q+1;
h=g+s*10+b*100+q*1000+w*10000;
cout<<h;
}
/**************************************************************
Problem: 1621
User: yangjunwen
Language: C
Result: Compile Error
****************************************************************/