cenaGry = 29
kupioneGry = int(input("Ile gier kupiles?"))
suma = 0
for i in range(kupioneGry):
    suma += cenaGry

print(suma)