{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u003cspan class\u003d\"tex-font-style-it\"\u003e\u003cspan data-scayt_word\u003d\"Petya\" data-scaytid\u003d\"1\"\u003ePetya\u003c/span\u003e loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits \u003cspan class\u003d\"tex-font-style-bf\"\u003e4\u003c/span\u003e and \u003cspan class\u003d\"tex-font-style-bf\"\u003e7\u003c/span\u003e. For example, numbers \u003cspan class\u003d\"tex-font-style-bf\"\u003e47\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-bf\"\u003e744\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-bf\"\u003e4\u003c/span\u003e are lucky and \u003cspan class\u003d\"tex-font-style-bf\"\u003e5\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-bf\"\u003e17\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-bf\"\u003e467\u003c/span\u003e are not.\u003c/span\u003e\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003cspan data-scayt_word\u003d\"Petya\" data-scaytid\u003d\"2\"\u003ePetya\u003c/span\u003e calls a number \u003cspan class\u003d\"tex-font-style-it\"\u003ealmost lucky\u003c/span\u003e if it could be evenly divided by some lucky number. Help him find out if the given number \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e is almost lucky.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tThe single line contains an integer \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e \u003cspan class\u003d\"tex-span\"\u003e(1\u0026thinsp;\u0026le;\u0026thinsp;\u003ci\u003en\u003c/i\u003e\u0026thinsp;\u0026le;\u0026thinsp;1000)\u003c/span\u003e \u0026mdash; the number that needs to be checked.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tIn the only line print \u0026quot;\u003cspan class\u003d\"tex-font-style-tt\"\u003eYES\u003c/span\u003e\u0026quot; (without the quotes), if number \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e is almost lucky. Otherwise, print \u0026quot;\u003cspan class\u003d\"tex-font-style-tt\"\u003eNO\u003c/span\u003e\u0026quot; (without the quotes).\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"title\" style\u003d\"border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(136, 136, 136); font-family: arial; font-weight: bold; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n\tInput 1\u003c/div\u003e\r\n\u003cpre style\u003d\"white-space: pre-wrap; word-wrap: break-word; background-color: rgb(239, 239, 239); line-height: 1.25em; margin-top: 0px; margin-bottom: 0px; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n47\u003c/pre\u003e\r\n\u003cdiv class\u003d\"title\" style\u003d\"border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(136, 136, 136); font-family: arial; font-weight: bold; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n\tInput 2\u003c/div\u003e\r\n\u003cpre style\u003d\"white-space: pre-wrap; word-wrap: break-word; background-color: rgb(239, 239, 239); line-height: 1.25em; margin-top: 0px; margin-bottom: 0px; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n16\u003c/pre\u003e\r\n\u003cdiv class\u003d\"title\" style\u003d\"border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(136, 136, 136); font-family: arial; font-weight: bold; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n\tInput 3\u003c/div\u003e\r\n\u003cpre style\u003d\"white-space: pre-wrap; word-wrap: break-word; background-color: rgb(239, 239, 239); line-height: 1.25em; margin-top: 0px; margin-bottom: 0px; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n78\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"title\" style\u003d\"border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(136, 136, 136); font-family: arial; font-weight: bold; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n\tOutput 1\u003c/div\u003e\r\n\u003cpre style\u003d\"white-space: pre-wrap; word-wrap: break-word; background-color: rgb(239, 239, 239); line-height: 1.25em; margin-top: 0px; margin-bottom: 0px; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\nYES\u003c/pre\u003e\r\n\u003cdiv class\u003d\"title\" style\u003d\"border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(136, 136, 136); font-family: arial; font-weight: bold; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n\tOutput 2\u003c/div\u003e\r\n\u003cpre style\u003d\"white-space: pre-wrap; word-wrap: break-word; background-color: rgb(239, 239, 239); line-height: 1.25em; margin-top: 0px; margin-bottom: 0px; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\nYES\u003c/pre\u003e\r\n\u003cdiv class\u003d\"title\" style\u003d\"border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(136, 136, 136); font-family: arial; font-weight: bold; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\n\tOutput 3\u003c/div\u003e\r\n\u003cpre style\u003d\"white-space: pre-wrap; word-wrap: break-word; background-color: rgb(239, 239, 239); line-height: 1.25em; margin-top: 0px; margin-bottom: 0px; padding: 0.25em; color: rgb(0, 0, 0);\"\u003e\r\nNO\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tNote that all lucky numbers are almost lucky as any number is evenly divisible by itself.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tIn the first sample \u003cspan class\u003d\"tex-span\"\u003e47\u003c/span\u003e is a lucky number. In the second sample \u003cspan class\u003d\"tex-span\"\u003e16\u003c/span\u003e is divisible by \u003cspan class\u003d\"tex-span\"\u003e4\u003c/span\u003e.\u003c/p\u003e"}}]}