X = int(input()) if X == 2: print(2) elif X > 2 and X % 2 == 0: print(4 + 10 * (X // 2 - 2)) else: print(5 + 10 * ((X - 1) // 2 - 1))