#include <stdio.h>
#include <stdbool.h>


bool _3nplus1(int n){
while (n > 1) {
  printf("%d\n", n);
  if (n % 2 == 1) n = 3*n + 1;
  else n = n/2;
  }
}

void _3np1_11() { _3nplus1(11); }

//int main() { _3np1_11(); }
