import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main{ public static void main(String[] args) { new Main().run(); } static int num(int i,int j,int len,int[][][] cnt,int H,int W,int target) { int sum=0; int INF=Integer.MAX_VALUE/3; for(int v=0;v<26;++v) { int p=i+len-1; int q=j+len-1; int r=i-1; int t=j-1; int a=(p>H||q>W)?INF:(cnt[v][p][q]-cnt[v][r][q]-cnt[v][p][t]+cnt[v][r][t]); if(a==INF) sum=INF; else if(a>0) ++sum; if(sum==target)break; else if(sum+(26-v-1) Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }