Problem:
Range

Write a program which reads three integers a, b and c, and prints "Yes" if a < b < c, otherwise "No".

Input

Three integers a, b and c separated by a single space are given in a line.

Output

Print "Yes" or "No" in a line.

Constraints

0 ≤ a, b, c ≤ 100

Sample Input 1

1 3 8

Sample Output 1

Yes

Sample Input 2

3 8 1

Sample Output 2

No

Solution in JAVA (judge verdict: Wrong Answer)

import java.util.Scanner;

public class Main{
	public static void main(String []args){
		Scanner stdin = new Scanner (System.in);
		int num1 = stdin.nextInt();
		int num2 = stdin.nextInt();
		int num3 = stdin.nextInt();
		if(num1 >= 1 && num2 >= 1 && num3 >= 1 && num1 <= 1000 && num2 <= 1000 && num3 <= 1000)
		if(num1 <= num2 && num2 <= num3){
			System.out.println("YES");
		}else if(num1 >= num2 && num2 >= num3){
			System.out.println("NO");
		}
	}
}