Afghan president's balancing act