def parse_denormalized(line):
    """Parse one line of the original dataset into a (user, item, rating) triplet of strings."""
    id_, rating = line.strip().split(',')
    user, item = map(lambda x: x[1:], id_.split('_'))
    return user, item, rating