#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d, e, f, g;
  int data[9], p;
  bool flag = false;
  cin >> a >> b >> c;
  d = 1;
  for (int i = 1; i <= 9; i++) d = (d * 10) % c;
  if (a < c)
    f = a;
  else
    f = c;
  for (int i = 1; i <= f; i++) {
    e = (d * i) % c;
    if ((c - e) % c > b) {
      flag = true;
      g = i;
      break;
    }
  }
  for (int i = 0; i < 9; i++) data[i] = 0;
  if (flag) {
    p = 0;
    while (g != 0) {
      data[p++] = g % 10;
      g /= 10;
    }
    cout << 1 << ' ';
    for (int i = 8; i >= 0; i--) cout << data[i];
    cout << endl;
  } else
    cout << 2 << endl;
}
