#include <stdio.h>
using namespace std;
int main() {
    int n;
    scanf("%d", &n);
    int unit = n;
    int ten = n + 1;
    int hundred = n + 2;
    int thousand = n + 3;
    int ten_thousand = n + 4;
    int num = ten_thousand * 10000 + thousand * 1000 + hundred * 100 + ten * 10 + unit;

    printf("%d", num);
    return 0;
}
/**************************************************************
	Problem: 1621
	User: fuhoubin
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:1144 kb
****************************************************************/