import java.io.*;
import java.util.*;
public class NumberLoop {

	
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		boolean done = false;
		while (!done) {
			System.out.print( ">>> ");
			if (input.hasNext()) {
				int n = Integer.parseInt( input.next());
				if (n == 0)
					done = true;
			}
			else {
				System.out.println( "Sorry  you quit");
				done = true;
			}
		}

	}

}
