#include <iostream>
using namespace std;

template <typename bsptyp> 
bsptyp mittelwert(bsptyp zahl_a, bsptyp zahl_b)
{
   bsptyp erg;
   erg = (zahl_a + zahl_b)/2.0;
   return erg;
}
int main(void)
{
   cout << mittelwert(2,5) << endl;
   cout << mittelwert(2.0, 5.0) << endl;
   return 0;
}
