#include <bits/stdc++.h>
using namespace std;
stack<int> sk;
bool trash[1000 * 1000 + 10];
int main() {
  string s;
  cin >> s;
  int ans = -1, cnt = 1, tmp = 0;
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == '(')
      sk.push(i);
    else if (!sk.empty())
      sk.pop();
    else
      trash[i] = true;
  }
  while (!sk.empty()) {
    trash[sk.top()] = true;
    sk.pop();
  }
  for (int i = 0; i < (int)s.size(); i++) {
    if (trash[i])
      tmp = 0;
    else
      tmp++;
    if (tmp > ans) {
      ans = tmp;
      cnt = 1;
    } else if (tmp == ans)
      cnt++;
  }
  if (ans == 0) cnt = 1;
  cout << ans << " " << cnt << endl;
  return 0;
}
