program DiemTrungBinh;
var
diem: real;
i, n: integer;
begin
write('Nhap so luong ban trong lop: ');
readln(n);
for i := 1 to n do
begin
write('Nhap diem trung binh cua ban ', i, ': ');
readln(diem);
if diem >= 5 then
writeln('Diem trung binh cua ban ', i, ' la: ', diem:0:2);
end;
end.