module main; import std; void main() { // 入力 int N = readln.chomp.to!int; // 答えの計算と出力 if (N % 2 == 0) { writeln(N / 2); } else { writeln(N); } }