import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int m = scanner.nextInt(); BitSet b1 = new BitSet(n); BitSet b2 = new BitSet(n); for(int i = 0; i < m; i++) { Stri..