def get_value_of_dict(dictionary, key):
    """
    Returns the value of the dictionary with the given key.
    """
    value = 0
    try:
        value = dictionary[str(key)]
    except KeyError:
        pass
    return value