const num = parseInt(readline()); const str = num.toString(2); const result = [...str] .map(Number) .reduce((previousValue, currentValue) => previousValue + currentValue, 0); print(result); 1. ...