A Stone Game

Two players take turns removing stones from a pile of N stones. On each turn, a player may remove any number of stones that is a power of two: 1, 2, 4, 8, 16, ... (but not more than the pile size). The player who removes the last stone wins.

Both players play optimally. Given N, determine whether the first player can force a win. Return true if the first player wins, false otherwise.

Source note: the underlying game is the classic power-of-two subtraction game. This repository exposes a single-query boolean adapter over a 32-bit integer n; it is not a byte-for-byte copy of the HDU 1847 or Timus 1180 input/output formats.

Examples
Input: 1
Output: true
Hints

A Stone Game

Two players take turns removing stones from a pile of N stones. On each turn, a player may remove any number of stones that is a power of two: 1, 2, 4, 8, 16, ... (but not more than the pile size). The player who removes the last stone wins.