#include <bits/stdc++.h>
using namespace std;
int coun[2][2];
char st[100005];
int main() {
  int i, n;
  scanf("%s", st);
  n = strlen(st);
  for (i = 0; i < n; i++) st[i] -= '0';
  long long odd = 0, even = 0;
  for (i = 0; i < n; i++) {
    coun[i % 2][st[i]]++;
    odd += coun[i % 2][st[i]];
    even += coun[!(i % 2)][st[i]];
  }
  cout << even << " " << odd << endl;
  return 0;
}
