include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main()
{
int a[105],b[105];
int max=0;
for(int i=0;i<100;i)
{
cin>>a[i];
b[i]=a[i];
}
sort(b,b+100);
reverse(b,b+100);
for(int i=0;i<100;i)
{
if(a[i]==b[0])
{
cout<<b[0]<<endl;
cout<<i+1;
break;
}
}
return 0;
}