#include <stdio.h>
int main(void)
{
int n , cost, k = 0;
scanf("%d%d", &n, &cost);
for(int i = 0; i <= cost/3; ++i)
for(int j = 0; j <= cost/2; ++j){
int x = n- i- j;
if(3*i + 2*j + x == cost)
{
printf("%d %d %d\n", i, j, x);
++k;
}
}
if(k == 0)
printf("No answer");
return 0;
}