//Cristin Sutherland Oct 7th 2010
//Converts an arff to a lisp by adding (! and ) to the beginning/end of each line
//Please name the file in.txt, and only include data

import java.io.IOException;
import java.util.Scanner;
import java.io.PrintWriter;
import java.io.FileReader;

public class Conversion {
  public static void main(String[] args) throws IOException{
    
    Scanner infile = new Scanner (new FileReader("in.txt"));
    PrintWriter outfile = new PrintWriter("out.txt");
    String line;
    while(infile.hasNext()){
      line = infile.nextLine();
      line = "(! " + line + ")";
      outfile.println(line);
    }
    infile.close();
    outfile.close();
  }
}