def calc_kd(kills, deaths):
    """Return the Kills/Deaths ratio as a string."""
    if kills == 0:
        return str(0)
    if deaths == 0:
        return str(kills)
    return str("%.2f" % (kills / deaths))