x = 5 z = 20 while x + z < 29: for i in range(3): x += i if i % 2: for j in range(2): z += j print("z",z) print("x",x)