def main(): N = int(input()) if N <= 3: print(N) else: print(3 + 5 * (N-3)) if __name__ == '__main__': main()