#include <iostream>//компилятор новый, готово
#include <stdio.h>
using namespace std;
int main() {
int c;
int a;
char b;
c = getchar();
while ((a = getchar()) != EOF){
if (c == '-'){
if (a=='>')
{
cout<<".";
a=getchar();
}
else {
putchar (c);
//putchar (a);
}
}
else if ( c == '/'){
putchar (c);
if ( a == '/'){
putchar (a);
while ((b = getchar()) !='\n'){
putchar (b);
}
cout<<endl;
a=getchar();
}
}
else putchar (c);
c=a;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPi8v0LrQvtC80L/QuNC70Y/RgtC+0YAg0L3QvtCy0YvQuSwg0LPQvtGC0L7QstC+CiNpbmNsdWRlIDxzdGRpby5oPgoKCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCBjOwoJaW50IGE7CgljaGFyIGI7CgljID0gZ2V0Y2hhcigpOwogICB3aGlsZSAoKGEgPSBnZXRjaGFyKCkpICE9IEVPRil7CiAgIAlpZiAoYyA9PSAnLScpewogICAJCQlpZiAoYT09Jz4nKSAKICAgCQkJewogICAJCQkJY291dDw8Ii4iOwogICAJCQkJYT1nZXRjaGFyKCk7CiAgIAkJCX0KICAgCQkJZWxzZSB7CiAgIAkJCQlwdXRjaGFyIChjKTsKICAgCQkJCS8vcHV0Y2hhciAoYSk7CiAgIAkJCX0KICAgCX0KICAgCWVsc2UgaWYgKCBjID09ICcvJyl7CiAgIAkJCiAgIAkJcHV0Y2hhciAoYyk7CiAgIAkJCQogICAJCWlmICggYSA9PSAnLycpewogICAJCQlwdXRjaGFyIChhKTsKICAgCQkJd2hpbGUgKChiID0gZ2V0Y2hhcigpKSAhPSdcbicpewoJCQlwdXRjaGFyIChiKTsKICAJCQl9IAogIAkJCWNvdXQ8PGVuZGw7CiAgCQkJYT1nZXRjaGFyKCk7CiAKICAKICAgCQl9CiAgIAl9CiAgIAllbHNlIHB1dGNoYXIgKGMpOwogICAJYz1hOwogICAJfQogICAJCiAgfQ==
VGVzdCogdCA9IG5ldyBUZXN0KCAgICk7CnQtLSZndDsgPSAxOwp0LSZndDtiID0gMgp0LSZndDtnbygpICA7ICAvLyBhPTEsIGI9MiAtJmd0OyBhPTIsIGI9Mwp0LS0mZ3Q7ID0gMTsK
Test* t = new Test( );
t--> = 1;
t->b = 2
t->go() ; // a=1, b=2 -> a=2, b=3
t--> = 1;