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

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void one() throws Exception {
		try {
			System.out.println("One");
			throw new Exception();
		} catch (Exception e) {
			System.out.println("Catch one");
			throw new Exception();
		} finally {
			System.out.println("Finally one");
		}
	}
	public static void two() throws Exception {
		try {
			System.out.println("Two");
			throw new Exception();
		} catch (Exception e) {
			System.out.println("Catch two");
			if (2 != 3) throw new Exception();
		}
		System.out.println("After two");
	}	
	
	public static void main (String[] args)
	{
		try { one(); } catch (Exception e) {}
		try { two(); } catch (Exception e) {}
	}
}