solve ARC#021-A,B