#include using namespace std; #define rep(i, n) for(int i=0; i<(int)(n); i++) #define rep1(i, n) for(int i=1; i<=(int)(n); i++) #define rep2(i, n, m) for(int i=(int)n; i<=(int)m; i++) typedef long long ll; typedef vector vi; typedef vector wi; typedef vector vl; const ll inf=1LL<<60; int gcd(int p, int q){ if(p%q==0)return q; return gcd(q, p%q); } int main(){ cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; if(n%2==0)cout << n/2 << endl; else cout << n << endl; return 0; }