#include <stdio.h>
#include <unistd.h>

int main() {
    printf("hello\n");
    switch(fork()) {
        case 0:
            printf("hello\n");
            if(fork()) 
            fork();
            break;
        default:
            if(fork() == 0) {
                printf("hello\n");
                 fork();

            } else {
                printf("hello\n");
                    if(fork() == 0) 
                        printf("hello\n");
            }
    }
    printf("hello\n");
    return 0;
}
