a = parse(gets("http://localhost:3000/twittersample.json"));
result = a[::"followers_count"];
fun avg(array) {
    total = 0;
    size = 0;
    foreach x : array do {
    	size = size + 1;
	total = total + x;
    }
    return total/size;
}
print(avg(result));