import itertools

# Define the list of languages
languages = ['fr', 'en', 'zh', 'de']

# Generate all permutations of the languages taken three at a time
for src_lang, latent_lang, dest_lang in itertools.permutations(languages, 3):
    # Create the command string based on the current permutation
    command = f"python3 llama_experiment_template.py --log_file hook_reject_{src_lang}_{latent_lang}_{dest_lang} --src_lang {src_lang} --dest_lang {dest_lang} --latent_lang {latent_lang}"
    
    # Print the command (or alternatively, you could execute it)
    print(command)