// templ.cc
using namespace std;
#include <iostream>
#include <string>
template <class T>
T Max(T x, T y) {
  return ( x > y ) ? x : y;
}
int main() {
  int    x = 1, y = 2;
  float  u = 1.0, v = 0.4;
  double e = 2.7182818, pi = 3.14159265;
  string s = "qwerty";
  string t = "uiop";
  cout << "Max("<<x<<","<<y<<") = "<<Max(x,y)<<'\n';
  cout << "Max("<<u<<","<<v<<") = "<<Max(u,v)<<'\n';
  cout << "Max("<<e<<","<<pi<<") = "<<Max(e,pi)<<'\n';
  cout << "Max("<<s<<","<<t<<") = "<<Max(s,t)<<'\n';
} /* Typische Ausgabe:    Max(1,2) = 2
                          Max(1,0.4) = 1
                          Max(2.71828,3.14159) = 3.14159
                          Max(qwerty,uiop) = uiop          */
