#include<stdio.h> int main(void) { int a,b,c,max,min; scanf("%d %d %d",&a,&b,&c); max=(a>b?a:b)>c?(a>b?a:b):c; min=(a<b?a:b)<c?(a<b?a:b):c; printf("%d %d %d\n",min,a+b+c-max-min,max); return 0; }