In KOI Village, houses stand along a straight road. The students are numbered from to , and exactly one student lives in each house. The house of student () is at coordinate . For example, student lives at coordinate and student lives at coordinate .
KOI Village has two schools, numbered and . Each student attends exactly one of them.
Two distinct students and are neighbors if at least one of the following holds.
The distance between two different houses is the larger of their coordinates minus the smaller. For example, the distance between the houses of students and is .
For each student, compute the number of other students who are their neighbors. A student is never their own neighbor.
The first line contains three space-separated integers , , and , in that order.
The second line contains space-separated integers , in that order. Here is the number of the school that student attends ().
Print space-separated integers on the first line. The -th integer is the number of students who are neighbors of student ().
All numbers in the input are integers.
| 3 | 35 |
| 4 | 35 | No additional constraints. |