Comparison of words P90226


Statement
 

pdf   zip

thehtml

Write a program that reads two words and tells their lexicographic order.

Input

Input consists of two words a and b, made up of only lowercase letters.

Output

Print a line telling if a < b, a > b or a = b, following the format of the examples exactly.

Observation

If you use a modern programming language, this exercise should be trivial.

Public test cases
  • Input

    anna xavier
    

    Output

    anna < xavier
    
  • Input

    xavier joan
    

    Output

    xavier > joan
    
  • Input

    joan joan
    

    Output

    joan = joan
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    C C++ Java Lua Perl PHP Python Ruby Rust