<>; $b=-1; $/=$"; $x+=<>; $a|=$_^$x for<>,0; print 1<