7vai , 3vai or mojo ?
Time Limit: 1.0 s
Memory Limit: 128.0 MB
Description
Shahin lives at position \(x\) on a number line. On this line, there are two restaurant named 7vai and 3vai, respectively at position \(a\) and \(b\).
Shahin decided to go to the closer restaurant. Find out which store is closer to Shahin residence.
Here, the distance between two points \(s\) and \(t\) on a number line is represented by \(|s−t|\).
where \(|x|\) represents the absolute value of \(x\)
Input
only line takes three integers : \(x,a,b\)
\(-1000 <= x,a,b <= 1000\)
Output
If 7vai restaurant is closer, print "7vai", if 3vai restaurant is closer print "3vai", otherwise print "mojo"
Sample
Input | Output |
---|---|
|
|
|
|
|
|
Information
- ID
- 1179
- Difficulty
- 6
- Category
- (None)
- Tags
- (None)
- # Submissions
- 61
- Accepted
- 18
- Accepted Ratio
- 30%
- Uploaded By
Related
In following contests: