#include <bits/stdc++.h>
using namespace std;
long long a, b;
string makestr(long long i) {
  string res;
  long long x = b / i;
  int k = i - b % i - 1;
  long long o = a - i + 2;
  res += string(x, 'x');
  res += string(o, 'o');
  while (--i) {
    res += string(x + (k-- <= 0), 'x');
    res += 'o';
  }
  return res.substr(i, res.size() - 1);
}
int main() {
  cin >> a >> b;
  auto sq = [](long long x) { return x * x; };
  pair<long long, long long> ans = make_pair(a * a - b * b, 1);
  for (long long i = 2; i <= min(b, a + 1); ++i) {
    long long x = b / i;
    long long dec = (b % i) * sq(x + 1) + (i - b % i) * sq(x);
    long long inc = sq(a - (i - 2)) + (i - 2);
    ans = max(ans, make_pair(inc - dec, i));
  }
  cout << ans.first << endl;
  cout << makestr(ans.second) << endl;
  return 0;
}
