import java.util.*; import static java.lang.System.*; import java.io.*; public class Main { static FastScanner sc = new FastScanner(System.in); public static void main(String[] args) { int H = sc.nextInt(); int W = sc.nextInt(); LinkedList p = new LinkedList(); String s; char c; for (int i=0; i p2 = new LinkedList(); int y,x; size = p.size()/2; for (int i=0; i)p.clone(); for (int k=0; k Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} public void close() { try {in.close();} catch (IOException e) {} } }