#include <bits/stdc++.h>
using namespace std;
long long a[1000000];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long q;
  cin >> q;
  long long k = 0;
  while (q % 2 == 0) {
    q = q / 2;
    a[k++] = 2;
  }
  for (long long i = 3; i <= sqrt(q); i += 2) {
    while (q % i == 0) {
      a[k++] = i;
      q = q / i;
    }
  }
  if (q != 1) a[k++] = q;
  if (k == 1 || k == 0) {
    cout << 1 << "\n" << 0 << "\n";
  } else if (k == 2)
    cout << 2 << "\n";
  else {
    cout << 1 << "\n";
    cout << a[0] * a[1] << "\n";
  }
  return 0;
}
