public class Main{
public static void main
(String[] args
){ int[ ] n = {1,2,3,4,5,6,7,8};
int total =0;
for(int i : n )
total += i;
System.
out.
print(total
/ n.
length); }
}
cHVibGljIGNsYXNzIE1haW57CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKXsKICAgICAgICBpbnRbIF0gbiA9IHsxLDIsMyw0LDUsNiw3LDh9OwogICAgICAgIGludCB0b3RhbCA9MDsKICAgICAgICBmb3IoaW50IGkgOiBuICkKICAgICAgICAgICAgdG90YWwgKz0gaTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50KHRvdGFsIC8gbi5sZW5ndGgpOwogICAgfQp9Cgo=