#include <bits/stdc++.h>
using namespace std;
void fuck(int n, int m, int d) {
  for (int i = 1; i < d && i <= n; i++) {
    long long f = i * (1e9);
    f %= d;
    if (f == 0) continue;
    if (f + m < d) {
      printf("1 %09d\n", i);
      return;
    }
  }
  cout << "2" << endl;
  ;
}
int main() {
  int n;
  scanf("%d", &n);
  ;
  int m;
  scanf("%d", &m);
  ;
  int d;
  scanf("%d", &d);
  ;
  fuck(n, m, d);
  return 0;
}
