The famous Catalan numbers can be defined by the recurrence with . The first Catalan numbers are 1, 1, 2, 5, 14, 42, 132, …
You are given an index . What is the smallest such that and is odd?
Input consists of several cases, each with a natural number no larger than .
For every
,
print the smallest
such that
and
is odd. If such a number does not exist, print
“Catalans are strange!”.
Input
0 1 2 3 1099511627768
Output
0 1 3 3 1099511627775