def snake_id_from_XY(x, y, converted_data):
    """
    Returns snake_id from x, y integers.

    Args:
        x (int): x value of tile
        y (int): y value of tile
        converted_data (dict): python readable version of json

    Returns:
        snake["id"](unicode string): snake id
    """
    for snake in converted_data["board"]["snakes"]:
        if (x == snake["body"][0]["x"]) and (y == snake["body"][0]["y"]):
            return snake["id"]