BF implementation of 6