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 int[][](M, N); foreach (x; 0 .. M) { tokens = readln.chomp.split; foreach (y; 0 .. N) { A[x][y] = tokens[y].to!int; } } }