P12096 [AOJ] Cube Coloring
普及
题目描述

Example

Input

2 2 2 0 0 0 5

Output

1 3 3 1 0

输入格式

见题面

输出格式

见题面

样例输入
2 2 2 0 0 0 5
样例输出
1 3 3 1 0