import java.util.Scanner; public class no780 { public static void main(String[]args) { Scanner sc = new Scanner(System.in); int A,B = 0; A = sc.nextInt(); B = sc.nextInt(); A++; if(A <= B) { System.out.println("YSE"); }else { System.out.println("NO"); } System.out.println(Math.abs(A - B)); } }