#include<stdio.h>

int main(){

int number;
while(scanf("%d", &number) != EOF){
    int gong, mu, xiao;
    for(gong = 0; gong<21; gong++){
        for(mu = 0; mu<34; mu++){
            xiao = 100-gong-mu;
            if(gong*5+mu*3+xiao/3 == 100 && xiao%3 == 0){
                printf("%d %d %d\n", gong, mu, xiao);
            }
        }
    }
}

}