#include <bits/stdc++.h>
using namespace std;
const long long int mxsize = 3e5 + 5;
const long long int linf = 1e9;
const long double inf = 10000000000.0;
const long long int mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  stack<int> st;
  st.push(-1);
  unordered_map<int, int> mp;
  int ans = 0;
  int n = s.length();
  for (int i = 0; i < n; i++) {
    if (s[i] == '(')
      st.push(i);
    else {
      st.pop();
      if (!st.empty()) {
        ans = i - st.top();
        mp[ans]++;
      } else
        st.push(i);
    }
  }
  int max_val = 0;
  for (auto x : mp) {
    max_val = max(max_val, x.first);
  }
  if (max_val == 0)
    cout << 0 << " " << 1 << endl;
  else
    cout << max_val << " " << mp[max_val] << endl;
}
