you give string b consist lowercase latin letter you number follow operation order 0 length string great zero delete character string replace a_2 a_3 ldot a_n 0 delete character string replace a_1 a_2 ldot a_n1 b 0 length string b great zero delete character string b replace b b_2 b_3 ldot b_n b 0 delete character string b replace b b_1 b_2 ldot b_n1 Note operation string b emptyfor example ahello bicpc apply follow sequence operation delete character stre rightarrow aello bicpc delete character string b rightarrow aello bcpc delete character string b rightarrow aello bpc delete character stre Rightarrow aell bpc delete character string b rightarrow aell bp for give string b find minimum number operation string b equal Note string equal