character*99c;1 read(*,'(5a4)'),((c(i+j:i+j+3),i=1,29,7),j=0,3,3);print'(i0xa6)',index(c(2:),c(:6))/7,c;goto1;end