#include<bits/stdc++.h>
using namespace std;
int main(){
int cnt=1,temp,temp2,c=0,max_c=-1;
cin>>temp2;
while(cin>>temp){
if(cin.get()=='\n')break;
if(temp>temp2){
cnt++;
max_c=max(c,max_c);
c=0;
}
c++;
temp2=temp;
}
cout<<max_c<<endl<<cnt;
return 0;
}