#YACS202009C2. 中心对称数

中心对称数

题目描述

中心对称数是指沿中心旋转 180 度后不变的十进制正整数。

  • 001188 旋转后不变;
  • 66 旋转后为 9999 旋转后为 66
  • 其他数字旋转后不能构成合理的数字。

给定一个正整数 ss,请判断 ss 是否是中心对称数。注意有一部分输入将会非常大。

输入格式

单个整数:表示 ss

输出格式

  • 如果输入的数字是中心对称数,输出 Strobogrammatic number
  • 否则输出 Not a strobogrammatic number

数据范围

ss 的十进制长度为 nn

  • 对于 50%50\% 的数据,1n101\leq n\leq 10
  • 对于 100%100\% 的数据,1n100001\leq n\leq 10000

样例数据

输入:

18081

输出:

Strobogrammatic number

输入:

666

输出:

Not a strobogrammatic number

输入:

4287

输出:

Not a strobogrammatic number