class Gauss {
    public static void main (String [] args) {
        // Place main program here
        int increment = Integer.parseInt (args [0]);
        int limit = Integer.parseInt (args [1]);
        int total = 0;
        for (int counter = increment; counter <= limit; counter += increment) {
            // We need to do something here
            total += counter;
        }
        System.out.println ("Sum = " + total);
    }
}
