def rotclass(val):
    """Convert this rotation string into a classification"""
    # if we have seven years of either corn and soy
    if val.count("B") + val.count("C") > 6:
        return "A"
    return "N"