#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6;
long long n, a[maxn], cnt;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cin >> n;
  long long x = n;
  for (long long i = 2; i * i <= n; i++) {
    while (n % i == 0) {
      a[++cnt] = i;
      n /= i;
    }
  }
  if (n != x && n != 1) a[++cnt] = n;
  if (cnt != 2) {
    cout << 1 << endl;
    cout << a[1] * a[2] << endl;
  } else
    cout << 2 << endl;
  return 0;
}
