def f(height): for j in range(200): total = 0 c = 0 while c < 3: h = height while h > 0: h -= 1 total += 1 c += 1 print total f(5)