#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
const double pi = acos(-1.0);
const int N = 111115;
char s[N];
int a[5][5];
int main() {
  scanf("%s", s + 1);
  int len = strlen(s + 1);
  long long x = 0, y = 0;
  for (int i = 1; i <= len; i++) {
    a[i & 1][s[i] - 'a']++;
    y += a[i & 1][s[i] - 'a'];
    x += a[!(i & 1)][s[i] - 'a'];
  }
  cout << x << " " << y << endl;
}
