#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
const int M = 2e5 + 5;
const int OO = 1e9;
const int MOD = 1e9 + 9;
int d[N], c[N], ans, occ = 1;
string second;
stack<int> p;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> second;
  memset(d, -1, sizeof d);
  memset(c, -1, sizeof c);
  for (int i = 0; i < second.size(); ++i) {
    if (second[i] == ')' && !p.empty()) {
      d[i] = p.top();
      p.pop();
      c[i] = (d[i] > 0 && ~(c[d[i] - 1]) ? c[d[i] - 1] : d[i]);
      int cur = i - c[i] + 1;
      if (cur > ans) {
        ans = cur;
        occ = 1;
      } else if (cur == ans)
        ++occ;
    } else if (second[i] == '(')
      p.push(i);
  }
  cout << ans << ' ' << occ << '\n';
  return 0;
}
