import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int a = stdin.nextInt(); int b = stdin.nextInt(); int c = Math.abs(a - b + 1); String answer = c == 0 ? "Yes" : "No"; System.out.println(answer); System.out.println(c); } }