function [G]=Delta(s,word1,word2)
delta=0;
for h=1:10
    [D]=ELS(s,word1,word2,h);
    delta=delta+D;
end
G=delta;