#include <bits/stdc++.h>
using namespace std;
char s[100005];
int main() {
  long long even, odd;
  scanf("%s", s);
  long long sum_even[5] = {0};
  long long sum_odd[5] = {0};
  even = odd = 0;
  int len = strlen(s);
  for (int i = 0; i < len; i++) {
    odd++;
    int t = s[i] - 'a';
    if (i % 2 == 0) {
      odd += sum_even[t];
      even += sum_odd[t];
      sum_even[t]++;
    } else {
      odd += sum_odd[t];
      even += sum_even[t];
      sum_odd[t]++;
    }
  }
  printf("%I64d %I64d\n", even, odd);
  return 0;
}
