def main(): N = int(input()) fizz = N // 3 buzz = N // 5 ans = (fizz + buzz) * 2 print(ans) if __name__=='__main__': main()