def extract_arguments(fh):
    N = int(fh.readline().strip())
    S_0 = fh.readline().strip()
    T = fh.readline().strip()
    return N, S_0, T

# Example usage:
# with open('input.txt', 'r') as fh: 
#     N, S_0, T = extract_arguments(fh)