#include <bits/stdc++.h>
int sta[1000001], head, ans[1000001];
char s[1000001];
int main() {
  int ans1 = 0, ans2 = 1;
  scanf("%s", s);
  for (int i = 0; s[i]; ++i) {
    if (s[i] == ')') {
      if (!head) continue;
      head--;
      ans[i] = i - sta[head] + 1 + ans[sta[head] - 1];
      if (ans1 == ans[i])
        ans2++;
      else if (ans1 < ans[i]) {
        ans1 = ans[i];
        ans2 = 1;
      }
    } else
      sta[head++] = i;
  }
  printf("%d %d", ans1, ans2);
  return 0;
}
