#include <iostream>
using namespace std;

static void ftw(int a, int b) { //f the world
  cout << a << "*" << b << "=" << a * b << endl;
}

template<int I, int J, int M = 9>
class WTF : public WTF<I, J - 1, M> { 
public:
  WTF() {ftw(I, J);}
};

template<int I, int M>
class WTF<I, 1, M> : public WTF<I - 1, M, M> {
public:
  WTF() {ftw(I, 1);}
};

template<int M>
class WTF<1, 1, M> {
public:
  WTF() {ftw(1, 1);}
};

int main() {
  WTF<9, 9> wtf;
  return 233;
}