def pop_num(self, nums1, nums2):
    if (len(nums1) == 0):
        return nums2.pop(0)
    elif (len(nums2) == 0):
        return nums1.pop(0)
    elif (nums1[0] > nums2[0]):
        return nums2.pop(0)
    elif (nums1[0] <= nums2[0]):
        return nums1.pop(0)
def pop_num(self, nums1, nums2):
    if (len(nums1) == 0):
        return nums2.pop(0)
    elif (len(nums2) == 0):
        return nums1.pop(0)
    elif (nums1[0] > nums2[0]):
        return nums2.pop(0)
    elif (nums1[0] <= nums2[0]):
        return nums1.pop(0)