#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include "boost/format.hpp"

using namespace std;

int main()
{
	vector<string> sv;
	for (int i = 1; i <= 9; i++){
		for (int j = 1; j <= 9; j++){
			string temp = (boost::format("%1%%2%%3%%4%%5%%6%") % i % '*' % j % '=' % (i*j) % '\n').str();
			sv.push_back(temp);
		}
	}

	for_each(sv.begin(), sv.end() ,
		[](string tmp){
		cout << tmp;
		}
	);
	getchar();
}