include [HTML_REMOVED]
using namespace std;
int main()
{
int a,b,c;
cin >>a>>b>>c;
if (a>b&&b>c)
cout <[HTML_REMOVED]c&&c>b)
cout <[HTML_REMOVED]a&&a>c)
cout <[HTML_REMOVED]c&&c>a)
cout <[HTML_REMOVED]a&&a>b)
cout <[HTML_REMOVED]b&&b>a)
cout <<a<<endl<<b<<endl<<c<<endl;
cout<<endl<<a<<endl<<b<<endl<<c;
return 0;
}