#include int main() { int n; scanf("%d", &n); if (n % 2) printf("%d\n", n); else puts("1"); return 0; }