import java.util.;
import java.io.;
class Main{
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(in.readLine().trim());
int a[]=new int [100100];
int num[]=new int [100100];int k=0;
while(n–!=0) {
String s1[]=in.readLine().split(” “);
for(int i=0;i[HTML_REMOVED]1) {
nn=i;
}
}
System.out.println(m+” “+nn);
}
}