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