{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e\n Den has two four-digit combination locks for protecting his bicycle from thieves. Every evening he arms the bicycle \n \u003cspan\u003eantitheft\u003c/span\u003e alarm and fastens the bicycle to a special stand with one of the locks. Den never uses the same lock two evenings in a row. One night a thief tried to open the lock using the code\u0026nbsp;0000. The alarm went off and the thief hurried away. The next night the thief decided to try the code 0001, then 0002, and so on in ascending order of the number.\n \u003c/div\u003e \n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cdiv\u003e\n Den never changes the codes of his locks. On the night when the thief came for the first time the bicycle was fastened with the first lock.\n \u003c/div\u003e \n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e\n The first line contains the combination that opens the first lock and the second line contains the combination that opens the second lock. Both combinations are strings consisting of four digits from\u0026nbsp;0 to\u0026nbsp;9.\n \u003c/div\u003e \n\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e\n Output “yes” if the thief will open the lock sooner or later and “no” otherwise.\n \u003c/div\u003e \n\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003ctable\u003e \n \u003ctbody\u003e \n \u003ctr\u003e \n \u003cth width\u003d\"350\"\u003e input\u003c/th\u003e \n \u003cth width\u003d\"350\"\u003e output\u003c/th\u003e \n \u003c/tr\u003e \n \u003ctr\u003e \n \u003ctd\u003e \u003cpre\u003e\r\n\t\t\t\t0001\r\n0000\r\n\u003c/pre\u003e \u003c/td\u003e \n \u003ctd\u003e \u003cpre\u003e\r\n\t\t\t\tno\r\n\u003c/pre\u003e \u003c/td\u003e \n \u003c/tr\u003e \n \u003ctr\u003e \n \u003ctd\u003e \u003cpre\u003e\r\n\t\t\t\t0002\r\n0001\r\n\u003c/pre\u003e \u003c/td\u003e \n \u003ctd\u003e \u003cpre\u003e\r\n\t\t\t\tyes\r\n\u003c/pre\u003e \u003c/td\u003e \n \u003c/tr\u003e \n \u003c/tbody\u003e \n\u003c/table\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cbr\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cbr\u003e"}}]}