#include <bits/stdc++.h>
#pragma warning(disable : 4996)
const int maxn = 1005;
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  int a, b, flag = 0;
  for (int i = 2; i <= sqrt(t); i++) {
    if (t % i == 0) {
      flag = 1;
      a = i;
      b = t / i;
      break;
    }
  }
  if (flag) {
    cout << a << b << endl;
  } else {
    cout << "1" << t << endl;
  }
}
