#include <bits/stdc++.h>
using namespace std;
int abs(int n) {
  if (n < 0)
    return -1 * n;
  else
    return n;
}
int main() {
  int a, b, i, a1 = 0, b1 = 0, d = 0;
  scanf("%d %d", &a, &b);
  for (i = 1; i <= 6; ++i) {
    if (abs(i - a) < abs(i - b)) a1++;
    if (abs(i - a) == abs(i - b)) d++;
    if (abs(i - a) > abs(i - b)) b1++;
  }
  printf("%d %d %d", a1, d, b1);
  return 0;
}
