#include
using namespace std;
char b = '0';
int main()
{
string s;
cin >> s;
string t;
t[0] = '9';
s[s.length()-1] += (1);
for (int i = s.length() - 1; i > 0; --i)
{
if (s[i] > '9')
{
s[i] = '0';
s[i - 1] += 1;
continue;
}
break;
}
if (s[0] > t[0])
{
cout
s[0] = '0';
}
cout
}