Var s,i,n:longint;
Begin
Write('nhap so luong so N = ');readln(n);
For i:=1 to n do
Begin
Write('Nhap so thu ',i,' = ');readln(so);
If so mod 5 = 0 then s:=s+so*so;
End;
Write('Tong binh phuong cac boi cua 5 trong day la ',s);
Readln;
End.
Var s,i,n,so:longint;
Begin
Write('nhap so luong so N = ');readln(n);
For i:=1 to n do
Begin
Write('Nhap so thu ',i,' = ');readln(so);
If so mod 5 = 0 then s:=s+so*so;
End;
Write('Tong binh phuong cac boi cua 5 trong day la ',s);
Readln;
End.