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