this interactive problemafter complete level enchant temple receive powerful artifact 255th level do rush celebrate artifact powerful rune destroy single spell s go find we define spell nonempty string consist letter bat time cast arbitrary nonempty spell t rune artifact begin resist Resistance rune edit distance string specify casted spell t runedestroying spell sedit distance string s t value equal minimum number onecharacter operation replace insert delete character s t for example distance ababa aaa 2 distance aaa aba 1 distance bbaba abb 3 the edit distance 0 string equalIt worth consider artifact resistance limit cast n 2 spell n length spell s rune blockedthu take n 2 few spell destroy rune artifact Keep mind require destructive spell s count n 2 spellsnote length n runedestroye spell s know advance it know length n exceed 300