import java.util.*; import java.lang.Math; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int A = sc.nextInt(); int B = sc.nextInt(); int p = A - B; if(p <= 0){ System.out.println("Yes"); System.out.println(Math.abs(p)); }else{ System.out.println("No"); System.out.println(p); } } }