#include <bits/stdc++.h>
using namespace std;
string s;
int dp[1000005], mx, cnt = 1;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    int prev = i - 2 * dp[i - 1] - 1;
    if (s[i] == ')' && s[prev] == '(' && prev >= 0)
      dp[i] = dp[prev - 1] + dp[i - 1] + 1;
    if (2 * dp[i] > mx) {
      mx = 2 * dp[i];
      cnt = 1;
    } else if (2 * dp[i] == mx && mx > 0)
      cnt++;
  }
  cout << mx << " " << cnt << "\n";
  return 0;
}
