#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
int main() {
  printf("%d: Common code1\n", getpid());
  if (fork() != 0) {
    printf("%d: Parent code\n", getpid());
  } else {
  	printf("%d: Child code\n", getpid());
  }
  printf("%d: Common code\n", getpid());
}