text='INTERMEZZO';
plain_text=double(text)-65
clear c;
c(1)=plain_text(1)
for k=2:10
  c(k)=mod(plain_text(k)+...
        plain_text(k-1),26);
end
char(c+65)

