#include <bits/stdc++.h>
using namespace std;
int dp[1000005];
stack<int> left_bracket;
int main() {
  string str;
  cin >> str;
  int i, cnt = 0, max = -1, slen;
  slen = str.length();
  for (i = 0; i < slen; i++) {
    if (str[i] == '(')
      left_bracket.push(i);
    else {
      if (!left_bracket.empty()) {
        int t = left_bracket.top();
        left_bracket.pop();
        dp[i] = dp[t - 1] + i - t + 1;
        if (dp[i] > max) {
          max = dp[i];
          cnt = 1;
        } else if (dp[i] == max)
          cnt++;
      }
    }
  }
  if (cnt == 0)
    printf("0 1");
  else
    printf("%d %d", max, cnt);
  return 0;
}
