/************************************************
Grundlegende Algorithmen mit Java,
http://algorithmen-und-problemloesungen.de/
Copyright @2007-2008 by Doina Logofatu
************************************************/

import java.io.*;
import java.util.*;

public class P04Tart2 {
    private static final String FileInputName = "tart.in";
    private static final String FileOutputName = "tart.out";
    /**
     * @param args
     * @throws IOException 
     */
    public static void main(String args[]) throws IOException {
        Scanner sc = null;
        PrintStream out= null;
        try {            
            out = new PrintStream(new File(FileOutputName));
            sc = new Scanner(new File(FileInputName ));
            while(sc.hasNextInt()) {
                int n = sc.nextInt();
                out.printf("%4d Schnitte -> %7d Stuecke!%n", n, 1 + n*(n+1)/2);
            }
        }
        finally {
            if (sc!=null) {
                sc.close();
            }
            if(out!=null) {
                out.close();                
            }            
        }        
    }
}



