13602 - Array   

Description

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the maximum number of the two sorted arrays.

Input

Input the size of two sorted arrays m and n, then input two sorted arrays nums1 and nums2 of size m and n.

Output

Output the maximum number of the two sorted arrays.

Sample Input  Download

Sample Output  Download

Tags




Discuss