check for all unwanted condition
if ( a == 1 b == 1 c == 1 a == b b == c a == c ) { System . out . print ( " - 1" + "NEW_LINE"); } else { System . out . print ( a + " ▁ " + b + " ▁ " + c + "NEW_LINE"); } }