def f(a,b,c) if a==b || a==c || b==c return 0 end if ac return 1 elsif a>b && b0 puts "YES" else puts "NO" end