Case 1: 12 4 4 4 0 Case 2: 3 3 3 1 1 Case 3: 1 1 1 1 1 Case 4: 59132290782430712