def main(): n = int(input()) nums = range(1, n + 1) count = (n // 3) * 2 + (n // 5) * 2 print(count) if __name__ == "__main__": main()