def check_elements(st, progress):
    coal = st.getQuestItemsCount(1870)
    char = st.getQuestItemsCount(1871)
    gemd = st.getQuestItemsCount(2130)
    gemc = st.getQuestItemsCount(2131)
    snug = st.getQuestItemsCount(1873)
    sofp = st.getQuestItemsCount(1875)
    tdbk = st.getQuestItemsCount(TD_BCK_SKN)
    if (progress in [1, 8]):
        if ((coal >= 10) and (char >= 10) and (gemd >= 1) and (snug >= 3) and (tdbk >= 10)):
            return '420_maria_2.htm'
        else:
            return '420_maria_1.htm'
    elif (progress in [2, 9]):
        if ((coal >= 10) and (char >= 10) and (gemc >= 1) and (snug >= 5) and (sofp >= 1) and (tdbk >= 20)):
            return '420_maria_4.htm'
        else:
            return '420_maria_1.htm'
def check_elements(st, progress):
    coal = st.getQuestItemsCount(1870)
    char = st.getQuestItemsCount(1871)
    gemd = st.getQuestItemsCount(2130)
    gemc = st.getQuestItemsCount(2131)
    snug = st.getQuestItemsCount(1873)
    sofp = st.getQuestItemsCount(1875)
    tdbk = st.getQuestItemsCount(TD_BCK_SKN)
    if (progress in [1, 8]):
        if ((coal >= 10) and (char >= 10) and (gemd >= 1) and (snug >= 3) and (tdbk >= 10)):
            return '420_maria_2.htm'
        else:
            return '420_maria_1.htm'
    elif (progress in [2, 9]):
        if ((coal >= 10) and (char >= 10) and (gemc >= 1) and (snug >= 5) and (sofp >= 1) and (tdbk >= 20)):
            return '420_maria_4.htm'
        else:
            return '420_maria_1.htm'