Resolved ternary to binary app