K=int(input()) def E(x): if x>=K: return 0 else: return 1+(E(x+1)+E(x+2)+E(x+3)+E(x+4)+E(x+5)+E(x+6))/6 print(E(0))