#include<stdio.h>

int main()
{
   int a,b,c;
   printf("Enter the value of \na b c:> \n");
   scanf("%d%d%d",&a,&b,&c);
   if((b<a&&b>c)|(b>a&&b<c))
        printf("%d is the 2nd max",b);

   else if((c<a&&c>b)|(c>a&&c<b))
       printf("%d is the 2nd max",c);
   else
        printf("%d is the 2nd max",a);

    return 0;

}
