#include <iostream>
#include <string>
using namespace std;
int main()
{
string s = "123";
s.append(s.substr(2)).push_back(s[s.length() - 2]);
cout << s;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgc3RyaW5nIHMgPSAiMTIzIjsKICAgIHMuYXBwZW5kKHMuc3Vic3RyKDIpKS5wdXNoX2JhY2soc1tzLmxlbmd0aCgpIC0gMl0pOwogICAgY291dCA8PCBzOwp9Cgo=