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]; foreach (x; 0 .. M) { A[x] = readln.chomp.split; } }