Minstrel found an old ledger of ribbons in the loom house attic at the saffron fields of Marigold Row. The margin notes pose a precise question. Task: Compare s and t lexicographically: print -1 if s<t, 0 if s==t, 1 if s>t. Input format: Two lines: string s, then string t. Output format: Print -1, 0, or 1. Constraints: 1 <= |s|,|t| <= 992.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= |s|,|t| <= 992.
