#include <stdio.h>
#include <unistd.h>
int main() {
switch(fork()) {
case 0:
if(fork())
fork();
break;
default:
if(fork() == 0) {
fork();
} else {
if(fork() == 0)
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx1bmlzdGQuaD4KCmludCBtYWluKCkgewogICAgcHJpbnRmKCJoZWxsb1xuIik7CiAgICBzd2l0Y2goZm9yaygpKSB7CiAgICAgICAgY2FzZSAwOgogICAgICAgICAgICBwcmludGYoImhlbGxvXG4iKTsKICAgICAgICAgICAgaWYoZm9yaygpKSAKICAgICAgICAgICAgZm9yaygpOwogICAgICAgICAgICBicmVhazsKICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICBpZihmb3JrKCkgPT0gMCkgewogICAgICAgICAgICAgICAgcHJpbnRmKCJoZWxsb1xuIik7CiAgICAgICAgICAgICAgICAgZm9yaygpOwoKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHByaW50ZigiaGVsbG9cbiIpOwogICAgICAgICAgICAgICAgICAgIGlmKGZvcmsoKSA9PSAwKSAKICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnRmKCJoZWxsb1xuIik7CiAgICAgICAgICAgIH0KICAgIH0KICAgIHByaW50ZigiaGVsbG9cbiIpOwogICAgcmV0dXJuIDA7Cn0K