#include <iostream>
using namespace std;
template <typename T, typename U>
auto max(T x, U y) -> decltype(x>y ? x : y)
{
return x>y ? x : y;
}
int main()
{
cout<<max(17.9,17)<<"\n";
cout<<max(17,17.9)<<"\n";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGUgPHR5cGVuYW1lIFQsIHR5cGVuYW1lIFU+CmF1dG8gbWF4KFQgeCwgVSB5KSAtPiBkZWNsdHlwZSh4PnkgPyB4IDogeSkKewogICAgcmV0dXJuIHg+eSA/IHggOiB5Owp9CgppbnQgbWFpbigpCnsKICAgIGNvdXQ8PG1heCgxNy45LDE3KTw8IlxuIjsKICAgIGNvdXQ8PG1heCgxNywxNy45KTw8IlxuIjsKfQ==