n=int(input()) str="" while n: if n % 3 == 0: str+="zz" if n % 5 == 0: str+="zz" n-=1 print(len(str))