n=int(input()) str="" str += "zz"* (n // 3) str += "zz"* (n // 5) print(len(str))