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