#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  stack<int> st;
  cin >> s;
  int n = s.size(), maxi = 0, c = 1;
  vector<int> rb(n);
  for (int i = 0; i < n; i++) {
    if (s[i] == '(')
      st.push(i);
    else if (!st.empty()) {
      int j = st.top();
      st.pop();
      rb[i] = i - j + 1;
      if (j > 0) rb[i] += rb[j - 1];
      if (rb[i] == maxi)
        c++;
      else if (rb[i] > maxi) {
        maxi = rb[i];
        c = 1;
      }
    }
  }
  cout << maxi << " " << c;
}
