enum M{M;System z;{String[]a=new java.util.Scanner(z.in).useDelimiter(" ").next().split("\n");for(int i=0,j=a.length;j-->0;)z.out.println(i+=new Long(a[j]));}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page