awk '$0=(($1-$3)*($2-$4)<3)+1'