fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import static java.lang.Math.*;
  7.  
  8. class Ideone {
  9. public static void main (String[] args) {
  10. Scanner sc = new Scanner(System.in);
  11. double x,y;
  12. x = sc.nextInt();
  13. y = sc.nextInt();
  14. if ((abs(x)+y<=4) && (y>=0)){
  15. System.out.println("Yes");
  16. }
  17. else{
  18. System.out.println("No");
  19. }
  20. }
  21. }
Success #stdin #stdout 0.07s 711680KB
stdin
4
-2
stdout
No