import java.util.Random; public class no780 { public static void main(String[] args) { Random random = new Random(); final int A = random.nextInt(10000) + 1; final int B = random.nextInt(10000) + 1; final int YASUO = A + 1; if (YASUO == B) { System.out.println("YES"); } else { System.out.println("NO"); } System.out.println("" + Math.abs(YASUO - B)); } }