#include #include using namespace std; int main() { string nr,nr2,nr3; cin>>nr; cin>>nr2; cin>>nr3; while (!(nr[0]=='0' && nr2[0]=='0' && nr3[0]=='0')) { for (int i=0; i>nr; cin>>nr2; cin>>nr3; } }