import sys input = sys.stdin.readline from collections import * N = int(input()) if N<=3: print(N) else: print(3+5*(N-3))