l = int(input()) print((l-1)**2//4)