#include <stdio.h>
int main(void)
{
int a[]={1,3,6,5,8,4};
int i=0,j=0;
int temp=0;
for(j=0;j<6;j++)
{
for (i=j+1;i<6;i++)
{
if(a[j]<a[i])
{
temp = a[j];
a[j] = a[i+1];
a[i+1]= temp;
}
}
}
printf("%d\n%d",a[0],a[1]);
return 0;
}