#include <iostream>
using namespace std;
template <typename T1, typename T2>
struct S
{
T1 x;
T2 y;
template <typename T3, typename T4>
S (const S <T3, T4> other) {x = other.x; y = other.y;}
S (T1 new_x, T2 new_y) {x = new_x; y = new_y;}
void print (void) {cout << x << " " << y << endl;}
};
int main (void)
{
S <int, int> s = S <double, double> (1.2, 3.4);
s.print ();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGUgPHR5cGVuYW1lIFQxLCB0eXBlbmFtZSBUMj4Kc3RydWN0IFMKewoJVDEgeDsKCVQyIHk7Cgl0ZW1wbGF0ZSA8dHlwZW5hbWUgVDMsIHR5cGVuYW1lIFQ0PgoJUyAoY29uc3QgUyA8VDMsIFQ0PiBvdGhlcikge3ggPSBvdGhlci54OyB5ID0gb3RoZXIueTt9CglTIChUMSBuZXdfeCwgVDIgbmV3X3kpIHt4ID0gbmV3X3g7IHkgPSBuZXdfeTt9Cgl2b2lkIHByaW50ICh2b2lkKSB7Y291dCA8PCB4IDw8ICIgIiA8PCB5IDw8IGVuZGw7fQp9OwoKaW50IG1haW4gKHZvaWQpCnsKCVMgPGludCwgaW50PiBzID0gUyA8ZG91YmxlLCBkb3VibGU+ICgxLjIsIDMuNCk7CglzLnByaW50ICgpOwoJcmV0dXJuIDA7Cn0K