package P159; import java.util.Scanner; import java.util.InputMismatchException; public class P159 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float p = sc.nextFloat(); float q = sc.nextFloat(); float P1; float P2; P1 = (1-p)*q; P2 = p*q*(1-q); if (P1P2) { System.out.println("NO\n"); } } }