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