#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { int in; while (scanf("%d", &in) != EOF) { scanf("%d", &in); int x = in * in - in + 1; printf("%d", x); int i; for (i = 0; i < in - 1; i++) { printf("%d+", x + 2 * i); } printf("%d\n", x + 2 * (in - 1)); } return 0; }