1: #include <stdio.h>
2:
3: int main()
4: {
5: int red, yellow, green;
6: for (red=0; red<=3; ++red)
7: for (yellow=0; yellow<=3; ++yellow)
8: for (green=2; green<=6; ++green)
9: if(red + yellow + green == 8)
10: printf("%d %d %d\n", red, yellow, green);
11: return 0;
12: }