The natural number N is given to the input of the algorithm. The algorithm constructs a new number R on it as follows.
1. A binary notation of the number N is being built.
2. Two more categories are added to this entry on the right according to the following rule:
A) at the end of the number (on the right) is added 1, if the number of units in the binary notation of the number is even, and 0, if the number of units in the binary notation of the number is odd;
B) 1 is added to this entry on the right if the remainder of the division of the number of units by 2 is 0, and 0 if the remainder of the division of the number of units by 2 is equal to 1.
The record obtained in this way is a binary notation of the desired number R.
Specify the minimum number R, which exceeds 54 and can be the result of the algorithm. In the answer, write down this number in the decimal system.