//ֵֵ
//ݣֵƽֵ

import java.util.Scanner;

class InsertDemo2{
	public static void main(String[] args){
	//¼룬趨
	Scanner input=new Scanner(System.in);
	System.out.println("һݣ");
	int x = input.nextInt();

	System.out.println("ڶݣ");
	int y = input.nextInt();

	int max = x>y?x:y;
	int avg = (x+y)/2;

	System.out.println("һַ");
	char z = 'w';// input();

	System.out.println("һΪ"+x+",ڶΪ"+y+"ַΪ"+z);
	System.out.println("ֵΪ"+max);
	System.out.println("ƽֵΪ"+avg);
	
	
	}

}

add InsertDemo2.java