import java.io.*; public class poisoned { public static void main(String[] args) throws Exception { BufferedReader in=null; in=new BufferedReader(new FileReader("poisoned.in")); int numInputs=Integer.parseInt(in.readLine()); for(int k=0;k target.rep) { bases[x].valid=false; bad++; } Base[] good=new Base[b-bad]; int index=0; long currID=1; for(int x=0;x 0) { //System.out.println("Trying "+good[x]); current=current|good[x].rep; elems++; } } if(current==target.rep && (min<0 || elems=0) System.out.println(min); else System.out.println("Impossible."); if(k0) s=s+"1"; else s=s+"0"; return s+" = "+rep+" id="+id; } }