#include using namespace std; int main() { int a, b; cin>>a>>b; cout<<"2\n"; cout<<"1 1\n"; cout<<"3 "<<1+a*b; return 0; }