import java.util.*;
public class Naloga11{
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		int a = 1;
		int b = 0;
		int d = 0;	
		int c = 0;
		int e = 0;
		
		while (a != 0){
			System.out.print("Vnesi mi številko: ");
			a = sc.nextInt();
			d++;
			if (a > b){
				b = a;
				e = d;
			}
			c += a;
		}
		System.out.println("Vsota vseh števil: "+c);
		System.out.println("Največje število je bilo "+b+". Vneseno je bilo "+e+" po vrsti.");
		
	}
}