Trinary code