#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int f = 0, s = 0, t = 0;
  int i;
  for (i = 1; i <= 6; i++) {
    int dist1 = i - a;
    if (dist1 < 0) dist1 = dist1 * -1;
    int dist2 = i - b;
    if (dist2 < 0) dist2 = dist2 * -1;
    if (dist1 < dist2)
      f++;
    else if (dist1 == dist2)
      s++;
    else
      t++;
  }
  cout << f << " " << s << " " << t;
}
