code='QKCHLMSLXV'
c=double(code)-65
clear p;
p(1)=c(1)
for k=2:10
  p(k)=mod(c(k)-p(k-1),26);
end
char(p+65)
