int i;int a;int b;for i=0to 99{input a;if b>0{print a+b;}print a;b=a;}