t = int(input('Digite a quantidade de minutos gasta: '))
if t < 200:
p = t * 0.2
if t >= 200 and t < 400:
p = t * 0.18
if t >= 400:
p = t * 0.15
print("O preco da ligacao foi de %.2f reais." % p)
print("O preco da ligacao foi de {0:.2f} reais".format(p))
dCA9IGludChpbnB1dCgnRGlnaXRlIGEgcXVhbnRpZGFkZSBkZSBtaW51dG9zIGdhc3RhOiAnKSkKCmlmIHQgPCAyMDA6CiAgICBwID0gdCAqIDAuMgppZiB0ID49IDIwMCBhbmQgdCA8IDQwMDoKICAgIHAgPSB0ICogMC4xOAppZiB0ID49IDQwMDoKICAgIHAgPSB0ICogMC4xNQoJCnByaW50KCJPIHByZWNvIGRhIGxpZ2FjYW8gZm9pIGRlICUuMmYgcmVhaXMuIiAlIHApCQpwcmludCgiTyBwcmVjbyBkYSBsaWdhY2FvIGZvaSBkZSB7MDouMmZ9IHJlYWlzIi5mb3JtYXQocCkpCQ==