import std.stdio, std.algorithm, std.string, std.conv, std.functional, std.array, std.range; void main() { stdin .byLineCopy .enumerate .map!(ls => (ls.index == 0) ? ls.value.strip.split.map!(to!int).sum.to!string : ls.value ) .join(" ") .writeln; }