def leaf(): s = 0 for i in range(20000): s += i return s def mid(): return sum(leaf() for _ in range(3)) def main(): return mid() main()