#include <iostream>
#include <string>
#include <algorithm>
#include <assert.h>
using namespace std;
unsigned long long convertStrintToInt(string s)
{
int l=s.length()-1;
unsigned long long num=0;
int dig=1;
while(l>=0)
{
int c=1;
assert(s[l]>='0'&&s[l]<='9');
num+=(s[l]-48)*dig;
dig*=10;
l--;
}
// For TEST
//long long cpy=stoi(s);
//assert(num==cpy);
return num;
}
string add9999(string s)
{
unsigned long long num=convertStrintToInt(s);
return to_string((num+9999));
}
int main() {
string s;
cin>>s;
cout<<add9999(s);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8YXNzZXJ0Lmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnVuc2lnbmVkIGxvbmcgbG9uZyBjb252ZXJ0U3RyaW50VG9JbnQoc3RyaW5nIHMpCnsKICAgIGludCBsPXMubGVuZ3RoKCktMTsKICAgIHVuc2lnbmVkIGxvbmcgbG9uZyBudW09MDsKICAgIGludCBkaWc9MTsKICAgIHdoaWxlKGw+PTApCiAgICB7CiAgICAgICAgaW50IGM9MTsKICAgICAgICBhc3NlcnQoc1tsXT49JzAnJiZzW2xdPD0nOScpOwoKICAgICAgICBudW0rPShzW2xdLTQ4KSpkaWc7CiAgICAgICAgZGlnKj0xMDsKICAgICAgICBsLS07CiAgICB9CiAgICAvLyBGb3IgVEVTVAogICAgLy9sb25nIGxvbmcgY3B5PXN0b2kocyk7CiAgICAvL2Fzc2VydChudW09PWNweSk7CgogICAgcmV0dXJuIG51bTsKfQpzdHJpbmcgYWRkOTk5OShzdHJpbmcgcykKewogICAgdW5zaWduZWQgbG9uZyBsb25nIG51bT1jb252ZXJ0U3RyaW50VG9JbnQocyk7CiAgICByZXR1cm4gdG9fc3RyaW5nKChudW0rOTk5OSkpOwp9CmludCBtYWluKCkgewoJc3RyaW5nIHM7CgljaW4+PnM7Cgljb3V0PDxhZGQ5OTk5KHMpOwoJcmV0dXJuIDA7Cn0=