For every integer $n$ from $0$ to $6$, we have $3$ identical weights with weight $2^n$. How many ways are there to form a total weight of 263 grams using only these given weights?

Let's think step by step and output the final answer within \boxed{}.
user