#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
void doit() {
  long long a, b, c, tn = 1, maxv, tval, tret, tgcd;
  cin >> a >> b >> c;
  if (b >= (c - 1)) {
    cout << 2 << endl;
    return;
  }
  for (int i = 0; i < 9; i++) {
    tn *= 10;
  }
  tval = tn % c;
  if (tval == 0) {
    cout << 2 << endl;
    return;
  }
  maxv = (c - 1) - b;
  if (tval <= maxv && a) {
    cout << 1 << " 000000001" << endl;
    return;
  }
  tgcd = gcd(tval, c);
  tgcd = c / tgcd;
  for (int i = 1; i <= a && i <= tgcd; i++) {
    tret = (i * tval) % c;
    if (tret >= 1 && tret <= maxv) {
      printf("%d %09d", 1, i);
      return;
    }
  }
  cout << 2 << endl;
  return;
}
int main() {
  doit();
  return 0;
}
