#include <bits/stdc++.h>
using namespace std;
int main() {
  string seq;
  cin >> seq;
  map<int, int> mp;
  int co = 0, st = 0, i = 0, coans = 0, comax = 0, l = seq.length();
  while (i < l) {
    if (seq.at(i) == '(')
      ++co;
    else if (seq.at(i) == ')')
      --co;
    if (co < 0) {
      co = 0;
      mp.clear();
      st = i + 1;
    } else if (co == 0) {
      if (((i + 1) - st) > comax) {
        comax = i + 1 - st;
        coans = 1;
      } else if ((i + 1 - st) == comax) {
        ++coans;
      }
    } else {
      if (mp[co] != 0 && seq.at(i) == ')') {
        int le = i + 1 - mp[co];
        if (le > comax) {
          comax = le;
          coans = 1;
        } else if (le == comax) {
          ++coans;
        }
      } else
        mp[co] = i + 1;
    }
    ++i;
  }
  if (coans == 0)
    printf("0 1\n");
  else
    printf("%d %d\n", comax, coans);
  return 0;
}
