import java.util.Scanner;
public class Q232476674 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt(), b = scanner.nextInt(), step = scanner.nextInt();
for (int x = a; x <= b; x += step) {
System.out.println("y(" + x + ") = " + (-2 * x * x + 4 * x));
}
}
}
y = -2x^2+4x