//versione 1

#include<stdio.h>

int ordered_swap(int, int, int);

int main() {
	int a, b, c;
        scanf("%d%d%d", &a, &b, &c);
	ordered_swap(a, b, c);
	return 0;
}

int ordered_swap(int a, int b, int c) {
	int temp;
	int *p1, *p2, *p3;

	p1=&a;
	p2=&b;
	p3=&c;

	if(*p1>*p2) {
		temp=*p1;
		*p1=*p2;
		*p2=temp;
	}
	if(*p1>*p3) {
		temp=*p1;
		*p1=*p3;
		*p3=temp;
	}
	if(*p2>*p3) {
		temp=*p2;
		*p2=*p3;
		*p3=temp;
	}
	printf("%d\n", *p1);
	printf("%d\n", *p2);
	printf("%d\n", *p3);
}

//versione 2

#include<stdio.h>
int ordered_swap(int , int, int);

int main() {
	int i, v[3],ord;
	int from=1, to=3;
	for(i=from; i<=to; i ++) {
		scanf("%d", &v[i]);
	}
	ord=ordered_swap(v[], from, to);
	return 0;
}

int ordered_swap(int v[], int from, int to) {
	int min;
	for(i=from; i<=to; i++) {
		if(v[i]<=v[i+1]) {
			min=v[i];
		}
	}
	v[1]=min;
	if(v[2]<v[3]) {
		
}

