#include using namespace std; int main() { int p; cin >> p; cout << (p==0 ? 1: p) << endl; }