@@ -0,0 +1,22 @@
+var
+ yy,res : longint;
+begin
+ res:=0;
+ yy:=random(0)+1980;
+ If (yy<1980) or (yy>2099) then
+ res:=1;
+
+ yy:=random(0)+2099;
+ res:=2;
+ If (yy<=1979) or (yy>2099) then
+ res:=3;
+ If (yy<1979) or (yy>=2100) then
+ res:=4;
+ halt(res);
+end.