#include<iostream>
using namespace std;
int main(){
int a=6,b=5,c=4,x;
cin>>x;
for(int s=x/c;s>=0;s--){
for(int w=x/b;w>=0;w--){
for(int l=x/b;l>=0;l--){
if(x==s*4+w*5+l*6){
cout<<l<<endl<<w<<endl<<s;
return 0;
}
}
}
}
}
欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) | Powered by Discuz! X3.3 |