/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
main ()
{ int q, w, e, larg, small;
scanf("%d%d%d", &q, &w, &e);
if (q > w > e)
q = larg;
if (q < w < e)
q = small;
if (w > q > e)
w = larg;
if (w < q < e)
w = small;
printf("smallest is %d\n largest is %d", small, larg);
return 0;
}