#include <bits/stdc++.h>
using namespace std;
long long abc(long long n) {
  long long c = 0;
  while (n % 2 == 0) {
    c++;
    n = n / 2;
  }
  for (long long i = 3; i <= sqrt(n); i = i + 2) {
    while (n % i == 0) {
      c++;
      n = n / i;
    }
  }
  if (n > 2) c++;
  return c;
}
long long a(long long n) {
  long long c = 0, d = 1;
  while (n % 2 == 0) {
    c++;
    d *= 2;
    if (c == 2) return d;
    n = n / 2;
  }
  for (long long i = 3; i <= sqrt(n); i = i + 2) {
    while (n % i == 0) {
      c++;
      d *= i;
      if (c == 2) return d;
      n = n / i;
    }
  }
  if (n > 2) c++;
  d *= n;
  if (c == 2) return d;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  if (abc(n) == 2)
    cout << 2;
  else {
    cout << 1 << endl;
    if (abc(n) == 1 || n == 1)
      cout << 0;
    else {
      cout << a(n);
    }
  }
  return 0;
}
