var getStatistics = function (players) {
var totalGoals = 0;
for (var i = 0; i < players.length; i++) {
totalGoals += players[i].goals;
}
for (var j = 0; j < players.length; j++) {
players[j].coefficient = players[j].goals * 2 + players[j].passes;
players[j].percent = Math.round(players[j].goals / 100 * totalGoals);
}
return players;
};