#include <bits/stdc++.h>
using namespace std;
int aux, arr[1000100];
string pal;
stack<int> s;
pair<int, int> ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ans.second = 1;
  cin >> pal;
  for (int i = 0; i < pal.size(); i++)
    if (pal[i] == '(') {
      s.push(i);
    } else if (!s.empty()) {
      arr[s.top()] = i;
      s.pop();
    }
  for (int i = 0; i < pal.size(); i++) {
    aux = 0;
    while (arr[i]) {
      aux += arr[i] - i + 1;
      i = arr[i] + 1;
    }
    if (aux > ans.first) {
      ans.first = aux, ans.second = 1;
    } else if (aux == ans.first && aux)
      ans.second++;
  }
  cout << ans.first << " " << ans.second;
}
