Input: A mountain is higher than a valley
A beach is higher than a valley

Output: second