#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int nn = sqrt(n);
    int first = true;
    cout << n << "=";
    for (int i = 2; i <= nn; i++) {
        while (n % i == 0) {
            if (first) {
                cout << i;
                first = false;
            } else {
                cout << "*" << i;
            }
            n = n / i; 
        }
    } 
    return 0;
}