#include #include #include using namespace std; using ll = long long; int main(){ int x,y; cin >> x >> y; cout << x*y <<" "<< x*y << endl; cout << (x-1)*y+1 <<" " << 1 << endl; for(int i=0;i