def swap_dict_key_and_values(d):
    """
    Given a dictionary, return a dictionary with the keys and values of the original dictionary swapped
    """
    d2 = {}
    for key, value in d.items():
        if type(value)==int:
            d2[int(value)] = key
        else:
            d2['{}'.format(value)] = key
        
    return d2