import java.io.*;

public class Experiment
{
    public static void main(String[] args)
    {
        BufferedReader src;
        String line;
        String[] fields;
        try
        {
            src = FileUtils.openBufferedReader("input.txt");
            while ((line = src.readLine()) != null)
            {
                line = line.trim(); // must trim before splitting
                fields = line.split("\\s+");
                
                // process fields
                for (int i = 0; i < fields.length; i++)
                {
                    System.out.print(fields[i] + " -- ");
                }
                System.out.println();
            }
            src.close(); // must close file
        }
        catch (UnsupportedEncodingException e)
        {
            System.out.println("Bad encoding. " + e.getMessage());
            System.exit(0);
        }
        catch (FileNotFoundException e)
        {
            System.out.println(e.getMessage());
            System.exit(0);
        }
        catch (IOException e)
        {
            System.out.println(e.getMessage());
            System.exit(0);
        }
    }
}