Collectors' Bazaar in the City of Palaputra
Professor Seleznev is planning to buy invisible air fish for the Kyiv Zoo. These fish are housed in aquariums that are arranged on M shelves. Each shelf contains N aquariums, forming N vertical rows.
It's impossible to tell by appearance whether an aquarium is empty or contains fish, and some aquariums might indeed be empty. Although the seller doesn't know the exact number of fish in each aquarium, he has recorded the total number of fish on each shelf and in each vertical row.
Your task is to help Professor Seleznev locate any aquarium that contains fish using this information.
Input Format:
The first line contains two integers M (1 ≤ M ≤ 20) and N (1 ≤ N ≤ 20), separated by a space, representing the number of shelves and the number of rows, respectively. The second line contains M integers separated by spaces, indicating the total number of fish in the aquariums on each shelf. The third line contains N integers separated by spaces, indicating the total number of fish in the aquariums of each vertical row. (The sum of the numbers in the second line equals the sum of the numbers in the third line).
Output Format:
Print two integers separated by a space: the shelf number and the vertical row number where there is an aquarium with at least one fish. Shelf numbers start from 1, beginning with the top shelf. Row numbers also start from 1, beginning from the left. If it's impossible to determine the location of a non-empty aquarium, print "0 0" (two zeros, without quotes). If there are multiple solutions, you may provide any one of them.
Sample Input # 1
2 2
2 1
1 2
Sample Output # 1
1 2
Sample Input # 2
2 2
2 2
2 2
Sample Output # 2
0 0