import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; void main() { readln; auto AS = readln.split.to!(long[]); long s; foreach (a; AS) { if (a%2 == 1) { s += a; } else if (s) { writeln(s); s = 0; } } if (s) writeln(s); }