x = int(input()) if x == 2: a = 2 else: a = 4 + ((x + 1) // 2 - 2) * 10 if x % 2: a += 1 print(a)