import java.io.*;

class ScriviFunzione {
  public static void main(String args[])
  throws IOException {
    FileWriter w;
    w=new FileWriter("scrittura.txt");

    BufferedWriter b;
    b=new BufferedWriter (w);

    int x, f;
    String s;

    for(x=-10; x<=10; x++) {
      f=x*x-10*x+4;

      s=Integer.toString(f);

      b.write(s);

      b.write("\n");
    }

    b.flush();
  }
}

