Control Flow Program In Python For Perfect Balance