No 114514
题号:NC216212
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
Special Judge, 64bit IO Format: %lld

题目描述

found too much "" in this problem set. As a years old student, he can't stand it anymore. So he invites you to help him clean up the problem set.
                      
has a sequence consists of numbers, the indices label from to . Each number A_i in the sequence can only be or or . He does not want six consecutive numbers in the sequence , so he invites you to perform some operations on the sequence. In one operation, you can select an integer and change A_i to B_i, B_i can only be or or . Your task is to make the sequence do not contains the six consecutive numbers in at most  (rounding down) operations.
You are not required to minimize the number of operations.

输入描述:

The first line of the input contains an integer , denoting the length of the sequence.
The second line of the input contains Integers A_i, it's guaranteed that .

输出描述:

You should print  numbers in one line, denoting the sequence  after your operations.
We have proof that a solution always exists. If there are multiple solutions, print any.
End-of-line spaces are allowed in this problem. You can output with or without end-of-line spaces.
示例1

输入

复制
7
1 1 1 4 5 1 4

输出

复制
1 4 1 4 5 1 4