#include <iostream>
using namespace std;
int main()
{
int a;
o:
cin >> a;
if (cin.fail() || a < 0 || a > 1000)
cin.clear();
cin.ignore(33000, '\n');
cout << "ERROR\n";
goto o;
};
cout << ++a;
}
#include <iostream>
using namespace std;
int main()
{
int a;
o:
cin >> a;
if (cin.fail() || a < 0 || a > 1000)
{
cin.clear();
cin.ignore(33000, '\n');
cout << "ERROR\n";
goto o;
};
cout << ++a;
}