import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in
);
String[] ips1 = sc.nextLine().split("\\.");
String[] ips2 = sc.nextLine().split("\\.");
String[] ips3 = sc.nextLine().split("\\.");
String[] ips4 = sc.nextLine().split("\\.");
boolean sign = true;
int i=0;
for(i=0; i<4;i++) {
int ip1 = Integer.parseInt(ips1[i]);
int ip3 = Integer.parseInt(ips3[i]);
if(ip1>ip3) {
sign = false;
break;
}
}
if(sign) {
int temp = 0;
for(i=0; i<4;++i) {
int ip2 = Integer.parseInt(ips2[i]);
int ip3 = Integer.parseInt(ips3[i]);
if(ip2>=ip3) {
++temp;
}
}
if(temp == 4) {
System.out.println("Overlap IP");
}
else {
System.out.println("No Overlap IP");
}
}
else{
int temp = 0;
for(i=0; i<4;++i) {
int ip1 = Integer.parseInt(ips1[i]);
int ip4 = Integer.parseInt(ips4[i]);
if(ip1<=ip4) {
++temp;
}
}
if(temp == 4) {
System.out.println("Overlap IP");
}
else {
System.out.println("No Overlap IP");
}
}
}
}