def getLast(text, signs):
    """
        Returns a position of the sign which occurs the last.

        @param {string} text.
        @param {Array.<string>} signs.

        @return {number} Position.
    """
    positions = [text.rfind(sign) for sign in signs if text.rfind(sign) != -1]
    if positions:
        return max(positions)
    else:
        return -1