# Player Config ID: huggingface_DeepSeek-V3-0324_PayoffMaximizer_B (as Player B)
# Meta-Round: 1
# Experiment: PMxPM, Run: 5
# API: huggingface, Model: deepseek-ai/DeepSeek-V3-0324
# Based on textual strategy: huggingface_DeepSeek-V3-0324_PayoffMaximizer_B_MR1_strategy.txt
# LLM Suggested Fallback: Not Provided

def friendly_neighbor(my_history: list, opp_history: list, opponent_program_code: str) -> str:
    if not my_history:
        return "C"
    
    if "return \"D\"" in opponent_program_code or "return 'D'" in opponent_program_code:
        return "D"
    if "return \"C\"" in opponent_program_code or "return 'C'" in opponent_program_code:
        return "C"
    
    if opp_history[-1] == "D":
        return "D"
    else:
        return "C"