Frobenia has a currency based on the blatz, in the following denominations: 1, 2, 2, 3, 4, 4, 8, 8, 16, 16, 32, 32, 64, 64, . A value listed once is available only as a coin. A value listed twice as a coin and a bill, counted as distinct denominations. How many ways are there to make change for N blatz using distinct denominations?