print("You are good to fly!" if a+b <= 46 and a <= 23 and b <= 23 else ("You have too much packed.

You need to unpack " + str(a+b - 46)+"kg." if a+b > 46 else ("Bag 1 is too heavy.

Rebalance " + str(a-23)+"kg into bag 2." if a > 23 else "Bag 2 is too heavy.

Rebalance " + str(b-23)+"kg into bag 1.")))