#include <iostream>
using namespace std;
/*Esercizio 2 ) L'utente deve continuare a inserire dei caratteri fino a che non inserisce uno
dopo l'altro due caratteri consecutivi ( ad esempio si ferma dopo aver letto )*/
char c1,c2;
int main(){
cin>>c1;
cin>>c2;
while (c1+1!=c2) // (c2-c1 == 1) questa sta a indicare che si differeziano per 1 unità perchè normalmente
// non sono consecutivi
{
cin>>c1;
cin>>c2;
}
cout<<c1<<" "<<c2<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwovKkVzZXJjaXppbyAyICkgTCd1dGVudGUgZGV2ZSBjb250aW51YXJlIGEgaW5zZXJpcmUgZGVpIGNhcmF0dGVyaSBmaW5vIGEgY2hlIG5vbiBpbnNlcmlzY2UgdW5vIApkb3BvIGwnYWx0cm8gZHVlIGNhcmF0dGVyaSBjb25zZWN1dGl2aSAoIGFkIGVzZW1waW8gc2kgZmVybWEgZG9wbyBhdmVyIGxldHRvICkqLwpjaGFyIGMxLGMyOwoKaW50IG1haW4oKXsKCWNpbj4+YzE7CgljaW4+PmMyOwoJd2hpbGUgKGMxKzEhPWMyKSAvLyAoYzItYzEgPT0gMSkgcXVlc3RhIHN0YSBhIGluZGljYXJlIGNoZSBzaSBkaWZmZXJlemlhbm8gcGVyIDEgdW5pdMOgIHBlcmNow6ggbm9ybWFsbWVudGUKCSAgICAgICAgICAgICAgICAgICAgLy8gbm9uIHNvbm8gY29uc2VjdXRpdmkKCXsKCQljaW4+PmMxOwoJCWNpbj4+YzI7Cgl9Cgljb3V0PDxjMTw8IiAiPDxjMjw8ZW5kbDsKCQoJcmV0dXJuIDA7Cn0=