#include <bits/stdc++.h>
using namespace std;
using namespace std::chrono;
int MOD = 1e9 + 7;
long long getTime() {
  return duration_cast<milliseconds>(system_clock::now().time_since_epoch())
      .count();
}
bool yes(bool res, bool isUpperCase = false) {
  if (isUpperCase)
    cout << (res ? "YES" : "NO") << "\n";
  else
    cout << (res ? "Yes" : "No") << "\n";
  return res;
}
int a, x, y;
void input() { cin >> a; }
void count() {
  for (int i = 2; i <= sqrt(a); i++) {
    if (a % i == 0) {
      x = i;
      y = a / i;
      break;
    }
  }
}
void output() { cout << x << y << "\n"; }
void solve() {
  int T;
  T = 1;
  while (T--) {
    input();
    count();
    output();
  }
}
void test() {
  int T;
  cin >> T;
  while (T--) {
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  solve();
}
