Masala #0802
2-darajali tub son
Agar sonning raqamlarini o`sish va kamayish tartibida joylashtirganda har ikkala holatda ham tub son hosil bo`lsa, bu son 2-darajali tub son deyiladi. Sizga N soni beriladi. Siz uni 2-darajali tub son ekanini aniqlashga dastur tuzing.
Yagona qatorda \(N(11 \leq N \leq 10^9\space)\) soni kiritladi.
Agar kiritlgan son "2-darajali tub son" bo`lsa yes deb, aks holda no deb chiqaring.
# | input.txt | output.txt |
---|---|---|
1 |
13 |
yes |
2 |
23 |
no |