Ternary calculator for android.