#include <stdio.h>
#include <cmath>
#include <algorithm>
#include <cfloat>
#include <stack>
#include <queue>
#include <vector>
#include <string>
#include <iostream>
typedef long long int ll;
typedef unsigned long long int ull;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0.000000001
using namespace std;

int main(){

	ll X,Y,Z,A,B,C;
	ll loc;
	int N;
	scanf("%lld %lld %lld %lld %lld %lld %d",&X,&Y,&Z,&A,&B,&C,&N);

	if(N == 1){
		printf("%lld\n",X*Y*Z);
		return 0;
	}

	ll table[N];
	for(int i = 0; i < N; i++){
		table[i] = 0;
	}

	ll upper_tate = (Z-C)/N;
	ll upper_tate_amari = (Z-C)%N;

	for(int i = 0; i < N; i++){
		table[i] += upper_tate*X*Y;
	}

	ll num_bottom[N];
	ll calc_line[N];
	for(int i = 0; i < N; i++){
		num_bottom[i] = 0;
		calc_line[i] = 0;
	}

	//?????£?????¨??????????????????????????????????????°?????°??????
	ll height = Z-upper_tate_amari;

	ll oku = (Y-B)/N;
	ll oku_amari = (Y-B)%N;

	ll oku_loc = Y-oku_amari,manhattan;


	if(height <= Z-1){

		for(int i = 0; i < N; i++){
			num_bottom[i] += oku*X;
		}

		if(oku_loc <= Y-1){

			for(ll x = 0; x <= X-1; x++){
				manhattan = abs(A-x)+abs(B-oku_loc)+abs(C-height);
				calc_line[manhattan%N]++;
				num_bottom[manhattan%N]++;
			}

			for(ll i = 1; oku_loc+i <= Y-1; i++){
				for(ll k = 0; k < N; k++){
					loc = i+k;
					if(loc >= N){
						loc -= N;
					}
					num_bottom[loc] += calc_line[k];
				}
			}
		}

		ll temae,temae_amari,temae_loc;


		if(B >= 1){
			temae = B/N;
			temae_amari = B%N;


			for(int i = 0; i < N; i++){
				num_bottom[i] += temae*X;
			}

			//????????????????¨????
			temae_loc = B-temae_amari;

			if(temae_loc <= B-1){
				for(int i = 0; i < N; i++){
					calc_line[i] = 0;
				}

				for(ll x = 0; x <= X-1; x++){
					manhattan = abs(A-x)+abs(B-temae_loc)+abs(C-height);
					calc_line[manhattan%N]++;
					num_bottom[manhattan%N]++;
				}

				for(ll i = 1; temae_loc+i <= B-1; i++){ //??????????????\?????????????????§????????????!!???
					for(ll k = 0; k < N; k++){
						loc = k-i;
						if(loc < 0){
							loc += N;
						}
						num_bottom[loc] += calc_line[k];
					}
				}
			}

		}

		for(int i = 0; i < N; i++){
			table[i] += num_bottom[i];
		}


		for(ll i = 1; height+i <= Z-1; i++){
			for(ll k = 0; k < N; k++){
				loc = i+k;
				if(loc >= N){
					loc -= N;
				}
				table[loc] += num_bottom[k];
			}
		}
	}

	////////////////////////////////////////////

	if(C >= 1){

		ll under_tate = C/N;
		ll under_tate_amari = C%N;

		for(int i = 0; i < N; i++){
			table[i] += under_tate*X*Y;
		}

		for(int i = 0; i < N; i++){
			num_bottom[i] = 0;
			calc_line[i] = 0;
		}

		height = C-under_tate_amari;



		if(height <= C-1){

			for(int i = 0; i < N; i++){
				num_bottom[i] += oku*X;
			}

			if(oku_loc <= Y-1){

				for(ll x = 0; x <= X-1; x++){
					manhattan = abs(A-x)+abs(B-oku_loc)+abs(C-height);
					calc_line[manhattan%N]++;
					num_bottom[manhattan%N]++;
				}

				for(ll i = 1; oku_loc+i <= Y-1; i++){
					for(ll k = 0; k < N; k++){
						loc = i+k;
						if(loc >= N){
							loc -= N;
						}
						num_bottom[loc] += calc_line[k];
					}
				}
			}

			ll temae,temae_amari,temae_loc;


			if(B >= 1){
				temae = B/N;
				temae_amari = B%N;


				for(int i = 0; i < N; i++){
					num_bottom[i] += temae*X;
				}

				temae_loc = B-temae_amari;

				if(temae_loc <= B-1){
					for(int i = 0; i < N; i++){
						calc_line[i] = 0;
					}

					for(ll x = 0; x <= X-1; x++){
						manhattan = abs(A-x)+abs(B-temae_loc)+abs(C-height);
						calc_line[manhattan%N]++;
						num_bottom[manhattan%N]++;
					}

					for(ll i = 1; temae_loc+i <= B-1; i++){
						for(ll k = 0; k < N; k++){
							loc = k-i;
							if(loc < 0){
								loc += N;
							}
							num_bottom[loc] += calc_line[k];
						}
					}
				}
			}

			for(int i = 0; i < N; i++){
				table[i] += num_bottom[i];
			}


			for(ll i = 1; height+i <= C-1; i++){
				for(ll k = 0; k < N; k++){
					loc = k-i;
					if(loc < 0){
						loc += N;
					}
					table[loc] += num_bottom[k];
				}
			}
		}
	}

	printf("%lld",table[0]);

	for(int i = 1; i < N; i++){
		printf(" %lld",table[i]);
	}

	printf("\n");

	return 0;
}

Measured memory_bytes: 3228