begin
  repeat
    chose any one of them.
  until there are links to 3 or more pdf files in them
end.