1 sort bitvec 1 2 sort array 1 1 3 input 2 @arr3 4 input 1 @inp4 5 input 1 @inp5 6 and 1 4 5 7 input 1 @inp7 8 input 1 @inp8 9 and 1 -7 -8 10 write 2 3 6 -9 11 input 1 @inp11 12 input 1 @inp12 13 and 1 -11 -12 14 and 1 11 12 15 and 1 -13 -14 16 read 1 10 15 17 constraint 16