int col = (in & 0xf) >> 2;

Version imprimable