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("0"); }else{ System.out.println("No"); System.out.println(p); } } }