#include <bits/stdc++.h>
using namespace std;
void init() {
  cin.tie(0);
  cin.sync_with_stdio(0);
}
bool prime(long long k) {
  if (k == 1) {
    return true;
  }
  for (long long i = 2; i * i <= k; ++i) {
    if (k % i == 0) {
      return false;
    }
  }
  return true;
}
int main() {
  init();
  long long n;
  cin >> n;
  long long c = 0;
  long long fm = 0;
  long long f = 1;
  for (long long i = 2; i * i <= n; i++) {
    if (n % i == 0 && !fm) fm = i, n /= i;
    if (n % i == 0 && i < n) return cout << 1 << "\n" << fm * i, 0;
  }
  if (fm == 0)
    cout << 1 << "\n" << fm;
  else
    cout << 2;
}
