package algo; import java.util.Scanner; public class sample7 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt() + 1; int B = sc.nextInt(); if(A < B) { System.out.println("No"); System.out.println(B - A); } else { System.out.println("Yes"); System.out.println(A - B); } } }