import java.util.*;


public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
     *
     *
     * @param r1 int整型ArrayList
     * @param r2 int整型ArrayList
     * @return bool布尔型
     */
    public boolean overlapRec (ArrayList<Integer> r1, ArrayList<Integer> r2) {
        // write code here
        return !(r1.get(2) <= r2.get(0) || r1.get(0) >= r2.get(2) || r1.get(1) >= r2.get(3) || r1.get(3) <= r2.get(1));
    }
}