Girls Invitational '19 J1 - Ecalevol Triplets

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 128M

Author:
Problem type

Finding Reppoh Ecarg too difficult a game, the children of Ada Land prefer to play the game of Ecalevol. This game is a lot simpler: a player draws 3 cards, and then exclaims Ecalevol! if they win, or I lost. if they lose.

All cards have an integer K\ (-100 \leq K \leq 100) on them. A hand is a winning hand if they can be arranged in an order where the first card divided by the second card, and then divided by the third card results in an integer.

A particularly lazy child has asked you to help them out. Given the child's hand, tell them what to exclaim.

Input Specification

There will be one line with 3 integers, the values of the cards in the hand.

Output Specification

Ecalevol! or I lost. depending on the outcome.

Sample Input 1

3 2 12

Sample Output 1

Ecalevol!

Explanation for Sample 1

If you rearrange the cards into the order 12 3 2, you can see that 12 divided by 3, then 2, results in 2, an integer.

Sample Input 2

-4 3 1

Sample Output 2

I lost.

Comments

There are no comments at the moment.