def resolve_diff(diff):
    """Find the shortest BF code to change a cell by `diff`, making use of overflow."""
    diff %= 256
    if diff < 128:
        return "+" * diff
    else:
        return "-" * (256 - diff)