#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  long long int a, b;
  cin >> a >> b;
  long long int ans = (a * a) - (b * b);
  long long int val, q, r, q1, z, sum = 0;
  if (a == 0) {
    val = -(b * b);
    cout << val << endl;
    for (int i = 1; i <= b; i++) cout << "x";
  } else if (b <= 1) {
    val = (a * a) - (b * b);
    cout << val << endl;
    for (int i = 1; i <= a; i++) cout << "o";
    for (int i = 1; i <= b; i++) cout << "x";
  } else {
    for (long long int i = 0; i < a; i++) {
      val = (a - i) * (a - i) + i;
      r = b % (i + 2);
      q = b / (i + 2);
      q1 = q + r;
      sum = (i + 2) * (q * q) + (r) * ((2 * q) + 1);
      val = val - sum;
      if (ans < val) {
        ans = val;
        z = i;
      }
    }
    cout << ans << endl;
    long long int a1 = a - z;
    long long int z1 = z + 2;
    r = b % (z1);
    q = b / (z1);
    long long int diff = z1 - r;
    bool fi = true;
    for (int i = 0; i < diff; i++) {
      for (int j = 0; j < q; j++) {
        cout << "x";
      }
      if (z > 0) {
        cout << "o";
        z--;
      } else if (z <= 0 && fi == true) {
        for (int k = 0; k < a1; k++) {
          cout << "o";
        }
        fi = false;
      }
    }
    for (int i = 0; i < r; i++) {
      for (int j = 0; j < q; j++) {
        cout << "x";
      }
      cout << "x";
      if (z > 0) {
        cout << "o";
        z--;
      } else if (z <= 0 && fi == true) {
        for (int k = 0; k < a1; k++) {
          cout << "o";
        }
        fi = false;
      }
    }
  }
}
