Compare two strings lexicographically (like dictionary order).
Difficulty: Medium
Phase: 5 · Strings
XP Reward: 20 XP
Topics: Strings, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Compare two strings S1 and S2 on separate lines lexicographically. Print 'First' if S1 < S2, 'Second' if S1 > S2, or 'Equal' if S1 == S2. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: apple banana
Output: First
Explanation: Sample execution for input apple banana