#include using namespace std; typedef long long ll; int main() { int H, W; cin >> H >> W; for(int y=0; y