#include <iostream>
using namespace std;


bool tres_digits_seguits_iguals(int n, int b);


int main() {
  int n, b;
  while (cin >> n >> b)
    cout << n << ' ' << b << ' ' << tres_digits_seguits_iguals(n, b) << endl;
}
