#include <bits/stdc++.h>
int main() {
  long long int N = 2, X = 1, sum = 0, y = 0;
  scanf("%lld %lld", &N, &X);
  printf("%lld %lld\n", N, X);
  if (N - X < 1) {
    X = N - 1;
  }
  sum = N;
  if (N >= 2 * X) {
    printf("a\n");
    if (N == 2 * X) {
      printf("a\n");
      sum += X;
    } else {
      y = X / (N - X);
      sum = (y + 1) * y;
    }
  } else {
  }
  printf("%lld\n", sum);
  return 0;
}
