#include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;
int main()
{ int a;
cout<<"inserisci una seguenza di 1 e 0"<<endl;
do{
cin>>a;
} while ((a!=1) and (a!=0));
system("PAUSE");
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgPG1hdGguaD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsgaW50IGE7CgogIGNvdXQ8PCJpbnNlcmlzY2kgdW5hIHNlZ3VlbnphIGRpIDEgZSAwIjw8ZW5kbDsKCiAgZG97CiAgICAgIGNpbj4+YTsKICB9IHdoaWxlICgoYSE9MSkgYW5kIChhIT0wKSk7CiAgCiAgIAogICAKICAgCgoKCgoKICAgIHN5c3RlbSgiUEFVU0UiKTsKfSAgIAogIA==