import java.util.Scanner;
public class Main {
public static void main
(String[] args
) { Scanner scanner
= new Scanner
(System.
in); double a = scanner.nextDouble();
double b = scanner.nextDouble();
double x = scanner.nextDouble();
double y = scanner.nextDouble();
double z = scanner.nextDouble();
if ((x < a && y < b) || (y < a && x < b) || (y < a && z < b) || (z < a && y < b) || (x < a && z < b) || (z < a && x < b)) {
} else {
}
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwogCnB1YmxpYyBjbGFzcyBNYWluIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJU2Nhbm5lciBzY2FubmVyID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlkb3VibGUgYSA9IHNjYW5uZXIubmV4dERvdWJsZSgpOwoJCWRvdWJsZSBiID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJZG91YmxlIHggPSBzY2FubmVyLm5leHREb3VibGUoKTsKCQlkb3VibGUgeSA9IHNjYW5uZXIubmV4dERvdWJsZSgpOwoJCWRvdWJsZSB6ID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJaWYgKCh4IDwgYSAmJiB5IDwgYikgfHwgKHkgPCBhICYmIHggPCBiKSB8fCAoeSA8IGEgJiYgeiA8IGIpIHx8ICh6IDwgYSAmJiB5IDwgYikgfHwgKHggPCBhICYmIHogPCBiKSB8fCAoeiA8IGEgJiYgeCA8IGIpKSB7CgkJCVN5c3RlbS5vdXQucHJpbnQoMSk7CgkJfSBlbHNlIHsKCQkJU3lzdGVtLm91dC5wcmludCgwKTsKCQl9Cgl9Cn0=