<reponame>Rohitm619/Softuni-Python-Basic
number = int(input())
bonus_points = 0
if number <= 100:
    bonus_points += 5
elif number > 1000:
    bonus_points += number * 0.10
else:
    bonus_points += number * 0.20
if number % 2 == 0:
    bonus_points += 1
if number % 10 == 5:
    bonus_points += 2
print(bonus_points)
print(bonus_points + number)
number = int(input())
bonus_points = 0
if number <= 100:
    bonus_points += 5
elif number > 1000:
    bonus_points += number * 0.10
else:
    bonus_points += number * 0.20
if number % 2 == 0:
    bonus_points += 1
if number % 10 == 5:
    bonus_points += 2
print(bonus_points)
print(bonus_points + number)