number = float(input())
bonus = 0.0

if number <= 100:
    bonus = bonus + 5
elif number > 100 and number <= 1000:
    bonus = 0.2 * number
elif number > 1000:
    bonus = 0.1 * number
if number % 2 == 0:
    bonus = bonus + 1
elif number % 10 == 5:
    bonus = bonus + 2

print(bonus)
print(bonus + number)