class Test6_2{
	static void Proc( int sel ){
		System.out.println(""+sel);
		try{
			if( sel==0 ){
				System.out.println("ûвκ쳣");
				return;
			}else if( sel==1 ){
				int i=0;
				int j=4/i;
			}else if( sel==2 ){
				int iArray[]=new int[8];
				iArray[10]=3;
			}
		}catch( ArithmeticException e ){
			System.out.println(""+e);
		}catch( ArrayIndexOutOfBoundsException e ){
			System.out.println(""+e);
		}catch( Exception e ){
			System.out.println("δ벻ᱻִ");
		}finally{
			System.out.println("ִ");
		}
	}
	public static void main( String args[] ){
		Proc( 0 );
		Proc( 1 );
		Proc( 2 );
	}
}
