s = int(input()) t = int(s%2) s = int(s/2) print(s+t)