from sys import stdout def iskadomatsu(a,b,c): return b>a>c or b>c>a or b