#include <bits/stdc++.h>
using namespace std;
long long int pwr(long long int base, long long int p) {
  long long int ans = 1;
  while (p) {
    if (p & 1) ans = (ans * base) % 1000000007;
    base = (base * base) % 1000000007;
    p /= 2;
  }
  return ans;
}
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
bool f(long long int a, long long int b) { return a > b; }
map<char, long long int> mo;
map<char, long long int> me;
int main() {
  long long int n, i = 0, j = 0, k, x = 0, y = 0, v, v2, d = 0;
  string s;
  cin >> s;
  long long int l = s.length();
  for (i = 0; i < l; i++) {
    if (i & 1) {
      y += me[s[i]];
      x += mo[s[i]];
      mo[s[i]]++;
    } else {
      y += mo[s[i]];
      x += me[s[i]];
      me[s[i]]++;
    }
  }
  cout << y << " " << (x + l);
  return 0;
}
