def f(n): m = n>>1 return n&1==0 and (m+2)*m or (m+3)*m+1 print(f(int(input())))