{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eRecently, a ransomware attack called \"WannaCry\" is infecting computers worldwide, causing great alarm and trepidation.\r\n\u003c/p\u003e\u003cp\u003eOperating systems developed by Company W are also vulnerable to such attack. As a reaction, Company W has released a patch for the operating systems on May 21st, 2017. They claim that if and only if the user updates his system after the release date, his system can be well protected.\u003c/p\u003e\u003cp\u003eNow, given the last update date of a system, can you judge whether it is safe or not?\u003c/p\u003e\u003cp\u003eEach date is represented in the format of 8-digits \"YYYYMMDD\", where \"YYYY\" is the year (from \"0001\" to \"9999\", \"MM\" is the month (from \"01\" to \"12\"), and \"DD\" is the day (from \"01\" to \"31\").\u003c/p\u003e\u003cp\u003e\u003cbr\u003e\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line contains an integer T (1 \u0026lt;\u003d T \u0026lt;\u003d 100), indicating the number of test cases.\u003cbr\u003e\t\t\t\u003cbr\u003e\t\t\tFor each test case:\u003cbr\u003e\t\t\t\u003cbr\u003e\t\t\tOne line contains a string with 8-digits, indicating the last update date of a system."}},{"title":"Output","value":{"format":"HTML","content":"For each test case, output one string in a single line: If the last update date is after the release date (May 21st, 2017), output \"safe\"; Otherwise, output \"unsafe\"."}},{"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\u003e3\r\n20170501\r\n20170521\r\n20170531\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eunsafe\r\nunsafe\r\nsafe\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}