#include <bits/stdc++.h>
using namespace std;
long long dp[100005];
long long ans[4];
void solve() {
  long long n;
  string s;
  cin >> s;
  s = '.' + s;
  n = s.length();
  long long def = 0;
  char c = 'd';
  long long sum0 = 0, sum1 = 0;
  for (long long int i = 1; i < n; i++) {
    if (s[i] != c) {
      def++;
      c = s[i];
    } else {
    }
    ans[2 * (i & 1) + (def & 1)]++;
    sum1 += ans[2 * (!(i & 1)) + ((def & 1))];
    sum0 += ans[2 * ((i & 1)) + ((def & 1))];
  }
  cout << sum1 << " " << sum0;
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int TESTS = 1;
  while (TESTS--) {
    solve();
  }
  cerr << "\nTime elapsed: " << 1000 * clock() / CLOCKS_PER_SEC << "ms\n";
  return 0;
}
