#abc237a. A - Not Overflow

A - Not Overflow

Score : 100100 points

问题描述

你将获得一个整数 NN。如果 NN 的值在 231-2^{31}23112^{31}-1(包含这两个数)之间,输出 Yes;否则,输出 No

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given an integer NN. If NN is between 231-2^{31} and 23112^{31}-1 (inclusive), print Yes; otherwise, print No.

Constraints

  • 263N<263-2^{63} \leq N < 2^{63}
  • NN is an integer.

Input

Input is given from Standard Input in the following format:

NN

Output

If NN is between 231-2^{31} and 23112^{31}-1 (inclusive), print Yes; otherwise, print No.

Sample Input 1

10

Sample Output 1

Yes

1010 is between 231-2^{31} and 23112^{31}-1, so Yes should be printed.

Sample Input 2

-9876543210

Sample Output 2

No

9876543210-9876543210 is less than 231-2^{31}, so No should be printed.

Sample Input 3

483597848400000

Sample Output 3

No

483597848400000483597848400000 is greater than 23112^{31}-1, so No should be printed.

update @ 2024/3/10 10:15:01