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