7vai , 3vai or mojo ?

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

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
5 4 7
7vai
5 -4 7
3vai
5 7 7
mojo

Intra LU IEEE Beginner Programming Contest

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
8
Start at
2025-02-26 05:30
End at
2025-02-26 07:30
Duration
2.0 hour(s)
Host
Partic.
42