number = int(input())
bonus = 0

if number <= 100:
    bonus += 5
elif number > 100:
    if number > 1000:
        bonus += number * 0.10
    else:
        bonus += number * 0.20

if number % 2 == 0:
    bonus += 1
elif number % 10 == 5:
    bonus += 2

print(bonus)
print(bonus + number)

