Triplet with no element divisible by 3 and sum N | Function to print a , b and c ; Check if n - 2 is divisible by 3 or not ; Driver Code
function printCombination ( n ) { document . write ( 1 + " " ) ; if ( ( n - 2 ) % 3 == 0 ) document . write ( 2 + " " + ( n - 3 ) ) ; else document . write ( 1 + " " + ( n - 2 ) ) ; } let n = 233 ; printCombination ( n ) ;