#include <iostream>
using namespace std;

int main() {
&#8195;&#8195;&#8195;int height[10];
&#8195;&#8195;&#8195;int tmp;
&#8195;&#8195;&#8195;int i=0,j=0;

&#8195;&#8195;&#8195;for (;i<10;i++)
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;cin>>height[i];
&#8195;&#8195;&#8195;for (i=0;i<100;i++)
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;for(j=1;j<10;j++)
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;if (height[j-1]<height[j]) {
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;tmp = height[j-1];
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;height[j-1] = height[j];
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;height[j] = tmp;
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;}

&#8195;&#8195;&#8195;for (i=0;i<3;i++)
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;cout<<height[i]<<endl;
&#8195;&#8195;&#8195;return 0;
}