Problem Description
Komil loves working with perfect binary strings.
One day he wanted to create a binary string satisfying the following conditions:
- If you cut out any contiguous substring of length , then the difference between the number of ones and the number of zeros in it equals , i.e.:
- If you cut out any contiguous substring of length , then the difference between the number of ones and the number of zeros in it is not equal to , i.e.:
The longer Komil’s string is, the happier he is. If there are several strings of the same length, he chooses the lexicographically smallest one.
Your task is to find the perfect string using the given and .
Input Format
The first line contains two integers and .
Constraints:
- It is guaranteed that such a binary string exists for the given and .
Output Format
Print the lexicographically smallest of the longest binary strings satisfying the conditions.
Scoring
| Subtask | Additional constraints | Points | Required subtasks |
|---|---|---|---|
| Sample tests | - | ||
Examples
Example 1
Input
2 0
Output
010