def main(): N = int(input()) three = N // 3 five = N // 5 z = (three + five) * 2 print(z) main()