import java.util.*; class Main{ public static void main(String[] args) { Scanner s = new Scanner(System.in); int n=s.nextInt(); int m=s.nextInt(); Integer zero=0; LinkedList imos=new LinkedList(); for(int i=0;i