Problem:
Small, Large, or Equal

Write a program which prints small/large/equal relation of given two integers a and b.

Input

Two integers a and b separated by a single space are given in a line.

Output

For given two integers a and b, print

a < b

if a is less than b,

a > b

if a is greater than b, and

a == b

if a equals to b.

Constraints

-1000 ≤ a, b ≤ 1000

Sample Input 1

1 2

Sample Output 1

a < b

Sample Input 2

4 3

Sample Output 2

a > b

Sample Input 3

5 5

Sample Output 3

a == b

Solution in JAVA (judge verdict: Accepted)

import java.util.NoSuchElementException;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {
    private static int MIN = -1000;
    private static int MAX = 1000;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int[] a_b = Stream.of(sc.nextLine().split(" "))
                    .mapToInt(Integer::parseInt)
                    .toArray();
            if (a_b.length != 2
                    || a_b[0] > MAX || a_b[0] < MIN
                    || a_b[1] > MAX || a_b[1] < MIN) {
                System.out.println("Condition is invalid.");
                return;
            }
            int a = a_b[0];
            int b = a_b[1];
            if (a == b) {
                System.out.println("a == b");
            } else if (a > b) {
                System.out.println("a > b");
            } else {
                System.out.println("a < b");
            }
        } catch (NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    }
}