How many nonnegative integers can be written in the form a5⋅35+a4⋅34+a3⋅33+a2⋅32+a1⋅31+a0⋅30, where ai∈−1,0,1 for 0≤i≤5?
243
364
365
729
730