public class BruteForceMax {
	public static void main(String [] args) {
		System.out.println(max(2, 3, 1));
	}

	public static int max(int x, int y, int z) {
		int max;
		if (x >= y && x >= z) 
			max = x;
		else if (y >= x && y >= z) 
			max = y;
		else 
			max = z;
		return max;
	}
}
