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