James while John had had had had had had had had had had had a better effect on Stanley Sir
Explanation:
John wrote : Polly had the measles
James wrote: Polly had had the measles.
So: James,while John had had "had", had had "had had"; "had had" had had a better effect on Stanley Sir
:D