def extract_arguments(fh):
    r, c, a1, a2, b1, b2 = map(int, fh.readline().strip().split())
    return (r, c, a1, a2, b1, b2)