monto = int(raw_input('Ingresar Capital: '))
if isinstance(monto, int):
if monto//500!= 0:
print "hay", monto//500, "billetes de 500"
if monto%500//200 != 0:
print "hay", monto%500//200, "billetes de 200"
if (monto%200)//100 != 0:
print "hay", (monto%200)//100, "billetes de 100"
if (monto%100)//50 != 0:
print "hay", (monto%100)//50, "billetes de 50"
if (monto%50)//20 != 0:
print "hay", (monto%50)//20, "billetes de 50"
if (monto%20)//10 != 0:
print "hay", (monto%20)//10, "billetes de 10"
if (monto%10)//5 != 0:
print "hay", (monto%10)//5, "billetes de 5"
if (monto%5)//2 != 0:
print "hay", (monto%5)//2, "monedas de 2"
else:
print "hay", (monto%2)//1, "monedas de 1"
else:
print "ERROR NUMERO DEBE SER ENTERO