{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eYou have a string and queries of two types:\r\n\u003col\u003e\r\n\u003cli\u003e replace \u003ci\u003ei\u003c/i\u003e’th character of the string by character \u003ci\u003ea\u003c/i\u003e;\r\n\u003c/li\u003e\u003cli\u003e check if substring \u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003ej\u003c/i\u003e\u003c/sub\u003e...\u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003ek\u003c/i\u003e\u003c/sub\u003e is a palindrome. \r\n\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eThe first line contains a string consisting of \u003ci\u003en\u003c/i\u003e small English letters.\r\nThe second line contains an integer \u003ci\u003em\u003c/i\u003e that is the number of queries\r\n(5 ≤ \u003ci\u003en\u003c/i\u003e, \u003ci\u003em\u003c/i\u003e ≤ 10\u003csup\u003e5\u003c/sup\u003e). The next \u003ci\u003em\u003c/i\u003e lines contain the queries. \r\n\u003cbr\u003eEach query has either form “change i a”, or “palindrome? j \r\nk”, where \u003ci\u003ei\u003c/i\u003e, \u003ci\u003ej\u003c/i\u003e, \u003ci\u003ek\u003c/i\u003e are integers (1 ≤ \u003ci\u003ei\u003c/i\u003e ≤ \u003ci\u003en\u003c/i\u003e; 1 ≤ \u003ci\u003ej\u003c/i\u003e ≤ \u003ci\u003ek\u003c/i\u003e ≤ \u003ci\u003en\u003c/i\u003e), and \r\ncharacter \u003ci\u003ea\u003c/i\u003e is a small English letter.\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eTo all second type queries, you should output “Yes” on a single \r\nline if substring \u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003ej\u003c/i\u003e\u003c/sub\u003e...\u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003ek\u003c/i\u003e\u003c/sub\u003e is a palindrome and “No” otherwise. \u003c/div\u003e\u003c/div\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003eabcda\r\n5\r\npalindrome? 1 5\r\npalindrome? 1 1\r\nchange 4 b\r\npalindrome? 1 5\r\npalindrome? 2 4\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eNo\r\nYes\r\nYes\r\nYes\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}