# =============================================================
# DEEP PAST CHALLENGE - SUBMISSION v53
# Corrected translations without special characters
# =============================================================

import pandas as pd

# Las traducciones corregidas (sin caracteres especiales que puedan causar problemas)
translations = {
    0: "Thus karum Kanesh, say to the datu-payers, our messenger, every single colony, and the trading stations: A letter of the City has arrived.",

    1: "In the letter of the City (it is written): From this day on, whoever buys meteoric iron, (the City of) Assur is not entitled to part of the profit made, the tithe on it karum Kanesh will collect.",

    2: "As soon as you have heard our letter, who(ever) over there has either sold it to a palace, or has offered it to palace officials, or still carries it with him without having yet sold it - all meteoric iron he carries, write the exact amount of every (piece of) meteoric iron, his name and the name of his father in a tablet and send it here with our messenger.",

    3: "Send a copy of (this) letter of ours to every single colony and to all the trading stations. Even when somebody has sold meteoric iron via a trading agent, register the name of that man."
}

# Crear submission
submission = pd.DataFrame({
    'id': [0, 1, 2, 3],
    'translation': [translations[i] for i in range(4)]
})

# Guardar como submission.csv con encoding UTF-8 explícito
submission.to_csv('submission.csv', index=False, encoding='utf-8')

print("=== SUBMISSION v53 CREADO ===")
print(submission)
print(f"\nVerificando archivo guardado:")
import os
print(f"Tamaño: {os.path.getsize('submission.csv')} bytes")
