#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long n = s.size();
  stack<int> stk;
  long long len = 0, mx = 0;
  map<long long, long long> f, st;
  f[0] = 1;
  for (int i = 0; i <= n - 1; i++) {
    int flag = 0;
    if (s[i] == ')') {
      if (stk.size() == 0) {
        continue;
      }
      int w = stk.top();
      stk.pop();
      len = (i - w + 1);
      st[w] = len;
    } else {
      stk.push(i);
    }
  }
  for (int i = n - 1; i >= 0; i--) {
    st[i] = st[i] + st[i + st[i]];
    mx = max(mx, st[i]);
    if (st[i]) f[st[i]]++;
  }
  cout << (mx) << " " << f[mx] << endl;
}
