#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n;
    scanf("%d",&n);
    for(int i=0;i<=100;i++){
        for(int j=0;j<=100;j++){
            for(int k=0;k<=100;k++){
                    int m=5*i+3*j+k/3;
                if (m<n&&(i+j+k==100)){
                    printf("x=%d,y=%d,z=%d\n",i,j,k);
                }
                 if(m==n&&(i+j+k==100)&&k%3==0){
                     printf("x=%d,y=%d,z=%d\n",i,j,k);
                 }
            }
        }
    }
}