Case 1: 2 7 Case 2: 8 1023