#include <iostream>
using namespace std;
int main()
{
int i = 0, k = i;
while(i == 0) {
if(k > 1)
i = k;
++k;
}
cout << k;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgaW50IGkgPSAwLCBrID0gaTsKICAgIAogICAgd2hpbGUoaSA9PSAwKSB7IAogICAgICAgIGlmKGsgPiAxKQogICAgICAgICAgICBpID0gazsKICAgICAgICArK2s7CiAgICB9CgogICAgY291dCA8PCBrOwp9Cgo=