#include <stdio.h>
int arr[4];
bool in_array(int a) {
for(int i = 0; i <= 4; i++)
if (arr[i] == a)
return true;
return false;
}
int main() {
for(int i = 0; i < 23; i++)
printf("%d\n", in_array(i));
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgYXJyWzRdOwoKYm9vbCBpbl9hcnJheShpbnQgYSkgewoJZm9yKGludCBpID0gMDsgaSA8PSA0OyBpKyspCgkJaWYgKGFycltpXSA9PSBhKQoJCQlyZXR1cm4gdHJ1ZTsKCXJldHVybiBmYWxzZTsKfQoKaW50IG1haW4oKSB7Cglmb3IoaW50IGkgPSAwOyBpIDwgMjM7IGkrKykKCQlwcmludGYoIiVkXG4iLCBpbl9hcnJheShpKSk7Cn0=