#include<bits/stdc++.h>
using namespace std;
int c,a[10001],n,t1=0,maxn,i=1,now,b[10001];
int main(){
while(cin>>a[i]){
b[i]=1;
for(int j=1;j<i;j++){
if(a[i]<a[j]){
now=max(now,b[j]);
}
}
b[i]+=now;
now=0;
maxn=(maxn,b[i]);
if(a[i]>n){
t1++;
}
n=a[i];
i++;
}
cout<<maxn<<endl;
cout<<t1;
}
不知道哪里错了