Shuffle shuffle

Somewhere near trinary I got lost in: