import java.util.Scanner;
public class ghj
{
public static void main(String[] args )
{
Scanner scanner = new Scanner(System.in);
int number = scanner.nextInt();
Scanner nb = new Scanner(System.in);
int a[]=new int [100];
for (int i=1;i<number+1;i++)
{
a[i]=nb.nextInt();
}
int sum=0;
for(int i=0;i<number+1;i++)
{
sum=sum+a[i]*i;
}
System.out.print(sum);
}
}
--------------------------------------------------------------------------------------------------------------------------------------------------------------
/6432363/JAVA.java:2: error: class ghj is public, should be declared in a file named ghj.java public class ghj ^ 1 error