var s:array[byte]of string;i,j,a,b,c,d:word;begin b:=9;d:=99;repeat inc(i);readln(s[i]);for j:=1to 30do if^`