#include <stdio.h>
int main(void) {
// your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglwcmludGYoIiUqc1xuIiwgMywgImEiKTsKCXByaW50ZigiJSpzXG4iLCAzLCAiYWEiKTsKCXByaW50ZigiJSpzXG4iLCAzLCAiYWFhIik7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQo=