Interesting Subsegments

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

A subsegment (contiguous subarray) of an array is interesting if the sum of values on this subsegment is divisible by 33.

You are given two integers nn and kk. Your goal is to construct the lexicographically minimal array of length nn such that it consists only of integers 00, 11, and 22, and has exactly kk distinct interesting subsegments.

Array aa of length nn is lexicographically smaller than array bb of the same length if there is 1in1 \le i \le n such that a_j=b_ja\_j = b\_j for j<ij < i and a_i<b_ia\_i < b\_i. Two subsegments are distinct if some element of the array belongs to one subsegment but not to the other.

입력

The only line of input contains two integers nn and kk (1n1061 \le n \le 10^6, 0k10180 \le k \le 10^{18}).

출력

Output -1 if there is no such array. Otherwise, output the lexicographically smallest array of size nn which satisfies the constraints.