a = int(
if (a> 1000) and (a< 1500):
print((a*3)//100, " руб.", (a*3)%100, " коп.")
elif (a> 1500):
print((a*5)//100, " руб.", (a*5)%100, " коп.")
else:
print((a)//100, " руб.", (a)%100, " коп.")
a = int(
if (a> 1000) and (a< 1500):
print((a*3)//100, " руб.", (a*3)%100, " коп.")
elif (a> 1500):
print((a*5)//100, " руб.", (a*5)%100, " коп.")
else:
print((a)//100, " руб.", (a)%100, " коп.")