import math x = int(input()) y = int(input()) non_paint = int(input()) paint = math.ceil(x * y * 4 - (x * y * 4 * non_paint / 100)) total = 0 painting = input() while painting != "Tired!": part_paint = int(painting) total += part_paint if total >= paint: break painting = input() if total < paint: print(f"{paint - total} quadratic m left.") elif total == paint: print("All walls are painted! Great job, Pesho!") else: print(f"All walls are painted and you have {total - paint} l paint left!") ИЛИ: import math x = int(input()) y = int(input()) non_paint = int(input()) paint = math.ceil(x * y * 4 - (x * y * 4 * non_paint / 100)) painting = input() while painting != "Tired!": paint -= int(painting) if paint <= 0: break painting = input() if paint > 0: print(f"{paint} quadratic m left.") elif paint == 0: print('All walls are painted! Great job, Pesho!') else: print(f'All walls are painted and you have {abs(paint)} l paint left!')