MC-XOBAHCK,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
Удавов: <input type="number" name="animal"><br>
Слонёнка: <input type="number" name="animal"><br>
Мартышек: <input type="number" name="animal"><br>
Попугаев: <input type="number" name="animal"><br>
<script>
let unit = document.querySelectorAll('input[name="animal"]');
const rang = [1, 2, 5, 38];
unit.forEach((el, i)=> (el.value = rang[i], el.addEventListener('input', function () {
let val = el.value / rang[i];
unit.forEach((el, k)=>{
el.value = (val * rang[k] *100|0)/100
})
})));
</script>
</body>
</html>