#include <iostream>
using namespace std;
int main()
{
int a=6,b=4,c=8;
if (a<=b)
{
if (c<=a) cout << c << a << b << endl;
else if (c<=b) cout << a << c << b << endl;
else cout << a << b << c << endl;
}
else
{
if (c<=b) cout << c << b << a << endl;
else if (c<=a) cout << b << c << a << endl;
else cout << b << a << c << endl;
}
return 0;
}