#include <iostream> using namespace std; int main() { int a,x,y,threez; while (cin >> a) { // 注意 while 处理多个 case for(threez=0;threez<=99;threez=threez+3) { for(x=0;100-x-threez>=0;x++) { y=100-x-threez; int z=threez/3; if(x*5+y*3+z==100) { cout<<x<<" "<<y<<" "<<threez<<" "<<endl; } } } } } // 64 位输出请用 printf("%lld")