kosztGry = int(29)

ileSztuk = int(input("Ile sztuk chcesz kupić: "))

wynik = 0

for i in range(ileSztuk):
    wynik += kosztGry

print(f"Kupiłeś {ileSztuk} sztuk gry. Łącznie kosztuje to {wynik} zł.")