#include using namespace std; #include #include #include template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF=1001001001; const int mod = 1000000007; int main() { vectorp(3),q(3); cin>>p[0]>>p[1]>>p[2]>>q[0]>>q[1]>>q[2]; vectork(3); for(int i=0;i<3;i++){ while(p[i]0){ int c=3; cout<<1<<" "<0){ int c=2; cout<<1<<" "<