import static java.lang.System.err;


public class Sandbox {

	private static void quickExit() {
		err.println("Now exiting...");
		System.exit(1);
	}
	
	public static void main(String[] args) {
		int os = -1;
		String buffer = System.getProperty("os.name");
		
		// Determine Host OS
		if (buffer == null) {
			err.println("Error: Unable to determine host operating system");
			quickExit();
		}
		if (buffer.indexOf("Linux")!=-1) {
			os = 0;
		} else if (buffer.indexOf("Windows")!=-1) {
			os = 1;
		} else if (buffer.indexOf("Mac OS X")!=-1) {
			os = 2;
		} else {
			err.println("Error: Operating system not supported.");
			quickExit();
		}
		System.out.println(os);
		

	}

}
