#include <iostream>
#include <cstdio>

using namespace std;

int main(){
    int n;

    while(scanf("%d",&n)!=EOF){
        int x,y,z;
        for(x=0;x<=100;++x){
            for(y=0;y<=100-x;++y){
                z=100-x-y;
//                 if(5*x+3*y+z/3<=n){//这个/3省略了小数
                    if(3*5*x+3*3*y+z<=3*n){
                    printf("x=%d,y=%d,z=%d\n",x,y,z);


                }

            }
        }
    }

}