#include using namespace std; int a,b,c,aux,nr,zece; int main() { while(true) { cin>>a>>b>>c; if(a==0&&b==0&&c==0) break; if(a==0) { if(b==0) { cout<