题号: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

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

to

,

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
, 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.