uses crt;
const fi='input.txt';
fo='output.txt';
var f1,f2:text;
a:array[1..100]of integer;
dem,i,t:integer;
begin
clrscr;
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
dem:=0;
while not eoln(f1) do
begin
inc(dem);
read(f1,a[dem]);
end;
writeln(f2,'so luong so nguyen co trong day la: ',dem);
{---------------tinh-tong------------------}
t:=0;
for i:=1 to dem do
t:=t+a[i];
writeln(f2,'tong gia tri cac so nguyen trong day la: ',t);
close(f1);
close(f2);
readln;
end.