JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
JavaScript
$('body').on('input', 'input[type=text]', function() {
$('input[type=text]').not($(this)).val( parseInt( (100 - $(this).val() ) / (4 - 1 ) ) );
});