def main(): from sys import stdin readline=stdin.readline n = int(readline()) #s = input() #a,b = map(int, readline().split()) #A = list(map(int, readline().split())) if n <= 2: print(n) else: print(5*n - 12) main()