def local_input(day):
    """Takes input data from local file, returns string or FileNotFoundError."""
    file = f'../input/{str(day).zfill(2)}'
    try:
        return open(file, 'r').read()
    except FileNotFoundError as error:
        return error