#include<cstdio>
int main() {
  int a,b,c,d=0,e=1000001;
  scanf("%d%d%d",&a,&b,&c);
  if(a>d)d=a;
  if(b>d)d=b;
  if(c>d)d=c;
  if(a<e)e=a;
  if(b<e)e=b;
  if(c<e)e=c;
  printf("The maximum number is : %d\nThe minimum number is : %d",d,e);
}