import strutils var n = stdin.readLine.parseInt echo if (n and 1) == 1: n else: n shr 1