result_dic = {
    "Allen": ["red", "blue", "yellow"],
    "Tom": ["green", "white", "blue"],
    "Andy": ["black", "pink"],
}
for i in sorted(result_dic.keys()):
    print(f"{i}'s favorite colors are:")
    for j in result_dic[i]:
        print(j)