n = int(input()) if n == 1: print(n) elif n == 2: print(n) elif n == 3: print(n) else: print(5 * (n - 3) + 3)