#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
const double eps = 1e-10;
const long long N = 1e5 + 7;
const long long MOD = 1e9 + 7;
long long pw(long long b, long long p) {
  long long res = 1;
  while (p > 0) {
    if (p & 1) res = res * b;
    b = b * b;
    p >>= 1;
  }
  return res;
}
long long sqr(long long x) { return x * x; }
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long a, b;
  cin >> a >> b;
  if (!a) {
    cout << -sqr(b) << '\n';
    for (long long i = 0; i < b; i++) cout << 'x';
  } else if (b <= 1) {
    cout << sqr(a) - sqr(b) << '\n';
    for (long long i = 0; i < a; i++) cout << 'o';
    for (long long i = 0; i < b; i++) cout << 'x';
  } else {
    long long ans = -sqr(a + b);
    long long ans1, ans2;
    for (long long x = 1; x <= min(a, b); x++) {
      for (long long y = x - 1; y <= x + 1; y++) {
        if (1 <= y && y <= b) {
          long long pos = sqr(a - (x - 1)) + (x - 1);
          long long neg = sqr(b / y + 1) * (b % y) + sqr(b / y) * (y - b % y);
          if (pos - neg > ans) {
            ans = pos - neg;
            ans1 = x;
            ans2 = y;
          }
        }
      }
    }
    cout << ans << '\n';
    for (long long i = 0; i < ans2; i++) {
      long long cur = (i < b % ans2) ? (b / ans2 + 1) : (b / ans2);
      for (long long j = 0; j < cur; j++) cout << 'x';
      cur = i ? 1 : a - (ans1 - 1);
      if (i < ans1)
        for (long long j = 0; j < cur; j++) cout << 'o';
    }
  }
  return 0;
}

### Prompt

Construct a CPP code solution to the problem outlined:

User ainta loves to play with cards. He has a cards containing letter "o" and b cards containing letter "x". He arranges the cards in a row, and calculates the score of the deck by the formula below.

  1. At first, the score is 0. 
  2. For each block of contiguous "o"s with length x the score increases by x2. 
  3. For each block of contiguous "x"s with length y the score decreases by y2. 



For example, if a = 6, b = 3 and ainta have arranged the cards in the order, that is described by string "ooxoooxxo", the score of the deck equals 22 - 12 + 32 - 22 + 12 = 9. That is because the deck has 5 blocks in total: "oo", "x", "ooo", "xx", "o".

User ainta likes big numbers, so he wants to maximize the score with the given cards. Help ainta make the score as big as possible. Note, that he has to arrange all his cards.

Input

The first line contains two space-separated integers a and b (0 ≤ a, b ≤ 105; a + b ≥ 1) — the number of "o" cards and the number of "x" cards.

Output

In the first line print a single integer v — the maximum score that ainta can obtain.

In the second line print a + b characters describing the deck. If the k-th card of the deck contains "o", the k-th character must be "o". If the k-th card of the deck contains "x", the k-th character must be "x". The number of "o" characters must be equal to a, and the number of "x " characters must be equal to b. If there are many ways to maximize v, print any.

Please, do not write the %lld specifier to read or write 64-bit integers in С++. It is preferred to use the cin, cout streams or the %I64d specifier.

Examples

Input

2 3


Output

-1
xoxox


Input

4 0


Output

16
oooo

Input

0 4


Output

-16
xxxx

### Response

```cpp
#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
const double eps = 1e-10;
const long long N = 1e5 + 7;
const long long MOD = 1e9 + 7;
long long pw(long long b, long long p) {
  long long res = 1;
  while (p > 0) {
    if (p & 1) res = res * b;
    b = b * b;
    p >>= 1;
  }
  return res;
}
long long sqr(long long x) { return x * x; }
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long a, b;
  cin >> a >> b;
  if (!a) {
    cout << -sqr(b) << '\n';
    for (long long i = 0; i < b; i++) cout << 'x';
  } else if (b <= 1) {
    cout << sqr(a) - sqr(b) << '\n';
    for (long long i = 0; i < a; i++) cout << 'o';
    for (long long i = 0; i < b; i++) cout << 'x';
  } else {
    long long ans = -sqr(a + b);
    long long ans1, ans2;
    for (long long x = 1; x <= min(a, b); x++) {
      for (long long y = x - 1; y <= x + 1; y++) {
        if (1 <= y && y <= b) {
          long long pos = sqr(a - (x - 1)) + (x - 1);
          long long neg = sqr(b / y + 1) * (b % y) + sqr(b / y) * (y - b % y);
          if (pos - neg > ans) {
            ans = pos - neg;
            ans1 = x;
            ans2 = y;
          }
        }
      }
    }
    cout << ans << '\n';
    for (long long i = 0; i < ans2; i++) {
      long long cur = (i < b % ans2) ? (b / ans2 + 1) : (b / ans2);
      for (long long j = 0; j < cur; j++) cout << 'x';
      cur = i ? 1 : a - (ans1 - 1);
      if (i < ans1)
        for (long long j = 0; j < cur; j++) cout << 'o';
    }
  }
  return 0;
}

```