#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << N << " = ";
int originalN = N;
while (N % 2 == 0) {
cout << 2;
N /= 2;
if (N > 1) cout << " * ";
}
for (int i = 3; i * i <= N; i += 2) {
while (N % i == 0) {
cout << i;
N /= i;
if (N > 1) cout << " * ";
}
}
if (N > 2) {
cout << N;
}
cout << endl;
return 0;
}
// JalenLam_progamer Jalenpro IQ380
// it is not real
// it is not real
// it is real