#include <iostream>
using namespace std;

int main() {
    int n;cin>>n;
    for(float i=0;i<=100;i+=1){
        for(float j =0;j<=100;j+=1){
            for(float k =0;k<=100;k+=1){
                if(i+j+k == 100 && i*5+j*3+k/3<=n)
                    cout<<"x="<<i<<",y="<<j<<",z="<<k<<endl;
            }
        }
    }
}
// 64 位输出请用 printf("%lld")

qd