import java.util.*;

public class Program_10_2 {
	public static void main(String [] args) throws Exception {
		Scanner scanner = new Scanner(System.in);

		int total = 0;

		while (total < 100) {
			System.out.print("Enter a number: ");
			int number = scanner.nextInt();
			total += number;
		}
		System.out.println("total: " + total);
	}
}

	

