from typing import Dict
from typing import Any


def format_leaderboard_user(user: Dict[str, Any]) -> str:
    """Format one user in the leaderboard."""
    rank = user["rank"]
    username = user["username"]
    gamma = user["gamma"]

    return f"{rank}. {username} ({gamma:,})"