/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

class Option<T> {
	private T o;
	
	Option() {
		this(null);
	}
	
	Option(T o) {
		this.o = o;	
	}
	
	T some() throws Exception {
		if (o == null) throw new Exception("A vot hui");
		return o;
	}
}

class ItDoesntHandleException {
	ItDoesntHandleException(Option o) {
		System.out.println(o.some());	
	}
}

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Option<Number> o = new Option();
		System.out.println(o.some());
		new ItDoesntHandleException(o);
	}
}

