def return_group1(code_check):
    """
    Input : L/G/R 6 character
    Return : First digits of barcode
    """
    if code_check == 'LLLLLL':
        return 0
    elif code_check == 'LLGLGG':
        return 1
    elif code_check == 'LLGGLG':
        return 2
    elif code_check == 'LLGGGL':
        return 3
    elif code_check == 'LGLLGG':
        return 4
    elif code_check == 'LGGLLG':
        return 5
    elif code_check == 'LGGGLL':
        return 6
    elif code_check == 'LGLGLG':
        return 7
    elif code_check == 'LGLGGL':
        return 8
    else:
        return 9