import std.stdio, std.string, std.conv, std.algorithm; import std.range, std.array, std.container; void main() { int n = readln.chomp.to!int; iota(n).map!(i => readln.chomp.to!long).sum.writeln; } void readInput(T...)(ref T args) { string[] line = readln.split; foreach (ref arg ; args) { arg = line.front.to!(typeof(arg)); line.popFront; } if (!line.empty) { throw new Exception("args num < input num"); } }