Problem A: 2025
Memory Limit:512 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:4
Solved:3
Description
小A有一个整数$x$,他想找到最小的正整数$y$使得下式成立:
$(x \ and \ y)+(x \ or \ y)=2025$
其中$and$表⽰二进制按位与运算,$or$表⽰二进制按位或运算。如果不存在满⾜条件的$y$,则输出$-1$。
Input
一行,一个整数$x$。
Output
一行,一个整数,若满足的$y$存在则输出$y$,否则输出$-1$。
Sample Input Copy
1025
Sample Output Copy
1000
HINT
【数据范围】
对于所有测试点,保证$0 \leq x <2025$。
【提示】
对于所有测试点,保证$0 \leq x <2025$。
【提示】
$(x \ and \ y)+(x \ or \ y)=2025$
其中:
$and$表示按位与运算符,运算符为$\&$。
$or$表示按位或运算,运算符为$|$。