#include <bits/stdc++.h>
using namespace std;
string a;
vector<int> v;
int x, y, mx, k = -1;
int main() {
  cin >> a;
  for (int i = 0; i < a.length(); i++) {
    if (a[i] == '(')
      v.push_back(i);
    else if (v.size() > 0) {
      if (v.size() == 1)
        x = i - k;
      else
        x = i - v[v.size() - 2];
      if (x > mx) mx = x, y = 0;
      if (x == mx) y++;
      v.pop_back();
    } else
      k = i;
  }
  cout << mx << " " << max(y, 1);
}
