using namespace std;
#include <bits/stdc++.h>

vector<pair<int,int>> factor(int n) {

    vector<pair<int,int>> res;

    for (int i=1; i*i<=n; i++)
        if (n%i == 0)
            res.push_back(pair<int,int>{i,n/i});
    return res;
}

int main() {

    vector<pair<int,int>> tmp = factor(144);
    for (auto x=tmp.begin(); x!=tmp.end(); x++)
        cout << x->first << " * " << x->second << endl;

    return 0;
}
