import strutils
let n = parseInt readLine stdin
echo if n mod 2 == 0: n div 2 else: 1