def getSolutionFromString(string):
    string = string.split('\n')
    string = [x.strip() for x in string]
    string = list(filter((lambda a: (a != '')), string))
    if (len(string) != 2):
        raise Exception('Wrong number of lines in outout')
    output = {}
    output['rows'] = [int(x) for x in string[0].split()]
    output['score'] = int(string[1])
    return output
def getSolutionFromString(string):
    string = string.split('\n')
    string = [x.strip() for x in string]
    string = list(filter((lambda a: (a != )), string))
    if (len(string) != 2):
        raise Exception('Wrong number of lines in outout')
    output = {}
    output['rows'] = [int(x) for x in string[0].split()]
    output['score'] = int(string[1])
    return output