def parse_claim(line):
    """Parse line to tuple with edge coordinates and size of rectangle."""
    _, claim = line.split(' @ ')
    edge_part, rectangle_part = claim.split(': ')
    edge = [int(num) - 1 for num in edge_part.split(',')]
    rectangle = [int(num) for num in rectangle_part.split('x')]
    return edge, rectangle