#include <iostream>
using namespace std;
template <class T>
T GetVal(int a, T b)
{
return b + 1;
}
int main() {
cout << GetVal<long long>(1, 2) << endl;
cout << GetVal(1,int(3)) << endl;
cout << GetVal(1,char(52)) << endl;
cout << GetVal(1,52ll) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGUgPGNsYXNzIFQ+ClQgR2V0VmFsKGludCBhLCBUIGIpCnsKCXJldHVybiBiICsgMTsKfQoKaW50IG1haW4oKSB7Cgljb3V0IDw8IEdldFZhbDxsb25nIGxvbmc+KDEsIDIpIDw8IGVuZGw7Cgljb3V0IDw8IEdldFZhbCgxLGludCgzKSkgPDwgZW5kbDsKCWNvdXQgPDwgR2V0VmFsKDEsY2hhcig1MikpIDw8IGVuZGw7Cgljb3V0IDw8IEdldFZhbCgxLDUybGwpIDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==