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