def getSlotFromCardName(cardName):
    """
    cardName is expected to be of the form 'gem-shelfXX-amcYY' where XX & YY are integers
    """
    slot = (cardName.split("-")[2])
    slot = int(slot.strip("amc"))
    return slot