program Noname4;
var sk1, sk2, sk3: integer;
begin
Read(sk1,sk2,sk3);
if((sk1>sk2 AND sk1<sk3) OR (sk1<sk2 AND sk1>sk3)) then writeln('Vidutinis', sk1)
else if((sk2>sk1 AND sk2<sk3) OR (sk2<sk1 AND sk2>sk3)) then writeln('Vidutinis', sk2)
else if((sk3>sk1 AND sk3<sk2) OR (sk3<sk1 AND sk3>sk2)) then writeln('Vidutinis', sk3)
else writeln('Yra vienodu skaiciu');
Readln;
end.