Output #1
Yes
No
Yes
No
Yes
Yes
Initially, $S =$ `abcbacb`.
For the first query, the string formed by the $1$\-st through $5$\-th characters of $S$ is `abcba`, which is a palindrome. Thus, print `Yes`.
For the second query, the string formed by the $4$\-th through $7$\-th character of $S$ is `bacb`, which is not a palindrome. Thus, print `No`.
For the third query, the string formed by the $2$\-nd through $2$\-nd character of $S$ is `b`, which is a palindrome. Thus, output `Yes`.
For the fourth query, change the $5$\-th character of $S$ to `c`. $S$ becomes `abcbccb`.
For the fifth query, the string formed by the $1$\-st through $5$\-th character of $S$ is `abcbc`, which is not a palindrome. Thus, output `No`.
For the sixth query, the string formed by the $4$\-th through $7$\-th character of $S$ is `bccb`, which is a palindrome. Thus, output `Yes`.
For the seventh query, change the $4$\-th character of $S$ to `c`. $S$ becomes `abccccb`.
For the eighth query, the string formed by the $3$\-rd through $6$\-th character of `cccc`, which is a palindrome. Thus, output `Yes`.