#include using namespace std; int n,c1,c2,p,s; int main() { while (cin>>n>>c1>>c2) { if (n==0 && c1==0 && c2==0) break; if (n==0) { if (c1==0) cout<