import std.conv, std.stdio, std.string; void main() { string[] tokens = readln.chomp.split; const M = tokens[0].to!int; const N = tokens[1].to!int; auto A = new string[][](M, N); foreach (i; 0 .. M) { tokens = readln.chomp.split; foreach (j; 0 .. N) { A[i][j] = tokens[j]; } } }