print("=="*20)
print(f' Banco dev')
print("=="*20)

sac = float(input('Qual o valor voce quer sacar?R$ '))
total = sac
ced = 50
totced = 0
while True:
    if total >=ced:
        total -= ced
        totced += 1
    else:
        print(f'Total de {totced} cedulas de R${ced}')
        if ced == 50:
            ced = 20
        elif ced == 20:
            ced = 10
        elif ced == 10:
            ced = 1
        totced = 0
        if total == 0:
            break