f=lambda n: 2 * f(n - n % 2 >> 1) + ~n % 2 if ~-n else 0 int = 1while f(int) != 1994: int += 1;print(int)
Standard input is empty
2101
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!