import java.util.*;

// java Fitness531.java "SQ" 275 10 "PR" 120 5 "FS" 225 10 "DL" 275 10 "BP" 185 5 "HX" 335 10

public class Fitness531 {
    static class Exercise {
        String name;
        double max;
        int increment;

        public Exercise(String name, double max, int increment) {
            this.name = name;
            this.max = max;
            this.increment = increment;
        }
    }

    public static void main (String args[]) {
        if (args.length == 0 || args.length % 3 != 0) throw new RuntimeException("Usage: java Fitness531 {name max increment} {name max increment}...");
        var exercises = new ArrayList<Exercise>(args.length / 3);
        for (int i = 0 ; i < args.length / 3 ; i++) {
            exercises.add(new Exercise(args[3 * i], 0.9 * Double.valueOf(args[3 * i + 1]), Integer.valueOf(args[3 * i + 2])));
        }

        double multiplier[][] = new double[][] {
            {.65, .75, .85},
            {.70, .80, .90},
            {.75, .85, .95},
            {.40, .50, .60}
        };

        int reps[][] = new int[][] {
            {5, 5, 5},
            {3, 3, 3},
            {5, 3, 1},
            {5, 5, 5}
        };

        System.out.println("Week,Exercise,Set 1 Load,Set 1 Volume,Set 2 Load,Set 2 Volume,Set 3 Load,Set 3 Volume");
        for (int week = 0 ; week < 12 ; week++) {
            for (Exercise e : exercises) {
                int w = week % 4;
                int progress = week / 4;
                System.out.print((week + 1) + "," + e.name);
                for (int i = 0 ; i < 3 ; i++) {
                    // load = multiplier % of weight for reps
                    // weight = max + (# of cycles completed * amount to increase each cycle)
                    double weight = e.max + progress * e.increment;
                    long load = Math.round(weight * multiplier[w][i]);
                    System.out.print("," + load + "," + reps[w][i]);
                }
                System.out.println(w < 3 ? "+" : "");
            }
        }
    }
}