x = int(input()) ans = 0 while x > 4: x -= 2 ans += 10 if x == 2: print(ans + 2) elif x == 3: print(ans + 5) elif x == 4: print(ans + 4)