N = int(input()) M=0 all = 1.5*N while all > 1.0: M+=1 all-=1 print(M)