#include using namespace std; int n,c1,c2,a[20][5],contor,aux,p; int main() { do { contor++; scanf("%d %d %d",&n,&c1,&c2); a[contor][1] = n; a[contor][2] = c1; a[contor][3] = c2; if(n==0&&c1==0&&c2==0)break; }while(!(n==0&&c1==0&&c2==0)); for(int i=1;i