Lexicographical Comparison
Compare given two sequence A={a0,a1,...,an−1} and B={b0,b1,...,bm−1 lexicographically.
Input
The input is given in the following format.
n
a0 a1,...,an−1
m
b0 b1,...,bm−1
The number of elements in A and its elements ai are given in the first and second lines respectively. The number of elements in B and its elements bi are given in the third and fourth lines respectively. All input are given in integers.