public class SemiBruteForceMax {
	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)
			if (x > z)
				max = x;
			else
				max = z;
		else
			if (y > z)
				max = y;
			else
				max = z;
		return max;
	}
}
