import java.util.Scanner; import java.util.*; import java.lang.String; class a { public static void main(String[] args) { Scanner read = new Scanner(System.in); int pbreite; int phoehe; pbreite = read.nextInt(); phoehe = read.nextInt(); String text; String text2; AsciiImage i = new AsciiImage(); i.pbreite = pbreite; i.phoehe = phoehe; int hoehe = 0; while (phoehe != hoehe){ if (read.hasNext()){ text2 = read.next(); text += text2; int len = text.length(); if (len != pbreite){ System.out.println("FALSCHE EINGABE"); System.out.println ("hoehe ="+phoehe); System.out.println ("breite ="+pbreite); return; } hoehe++; if (phoehe == hoehe){ System.out.println("OK"); System.out.println ("asdf="+text); System.out.println ("hoehe ="+phoehe); System.out.println ("breite ="+pbreite); } } else { System.out.println("FALSCHE EINGABE"); System.out.println ("hoehe ="+phoehe); System.out.println ("breite ="+pbreite); return; } } i.print(); } }