#include <bits/stdc++.h>
using namespace std;
int spf[1000000];
void sieve() {
  spf[1] = 1;
  for (int i = 2; i < 1000000; i++) {
    spf[i] = i;
  }
  for (int i = 4; i < 1000000; i += 2) {
    spf[i] = 2;
  }
  for (int i = 3; i * i <= 1000000; i++) {
    if (spf[i] == i) {
      for (int j = i * i; j < 1000000; j += i) {
        if (spf[j] == j) {
          spf[j] = i;
        }
      }
    }
  }
}
vector<int> getFactor(int x) {
  vector<int> res;
  while (x != 1) {
    res.push_back(spf[x]);
    x = x / spf[x];
  }
  return res;
}
int main() {
  int n;
  sieve();
  cin >> n;
  vector<int> p = getFactor(n);
  int x = p[0];
  cout << x << n / x << endl;
  return 0;
}
