import sys input = sys.stdin.readline x = int(input()) if(x == 2): print(2) elif(x % 2 == 0): print(4 + 10 * (x // 2 - 2)) else: print(5 + 10 * ((x - 1) // 2 - 1))