#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
long long int M = 1e9 + 7;
long long int MOD = 998244353;
const double PI = 3.141592653589793238460;
bitset<N> bs;
long long int power(long long int a, long long int b) {
  long long int res = 1;
  if (a == 0) return 0;
  if (a == 1) return 1;
  for (; b > 0; b >>= 1) {
    if (b & 1) {
      res = (res * a);
      if (res > M) res %= M;
    }
    a = (a * a);
    if (a > M) a = a % M;
  }
  return res;
}
int main() {
  string s;
  cin >> s;
  int n = s.length();
  stack<int> st;
  int maxc = 0, cnt = 0;
  st.push(-1);
  for (int i = 0; i < n; i++) {
    if (s[i] == '(')
      st.push(i);
    else {
      st.pop();
      if (st.empty())
        st.push(i);
      else {
        int ans = i - st.top();
        if (ans == cnt)
          maxc++;
        else if (ans > cnt) {
          cnt = ans;
          maxc = 1;
        }
      }
    }
  }
  if (cnt)
    cout << cnt << " " << maxc;
  else
    cout << "0 1";
}
