P. Whistles

Modern painting is often performed in dark rooms (this is why so many modern painters fall asleep while working on their latest masterpiece).

Modern painting is also often an activity that painters enjoy in groups, but only up to a certain number of people. Hence the problem: it can get difficult to tell how many painters are already in a dark room - does the painter want to enter, or not?

The trivial and traditional solution to this problem is to give a whistle to each painter. Each painter will blow their whistle every once in a while, when no one else is whistling.

   A whistle
http://commons.wikimedia.org/wiki/File:Pfeifenschnur.jpg

To check whether a room is overcrowded or not, you only have to listen for a while and count how many different whistles you can hear.

Given a long wav file with a large number of beeps. Each beep has the same length and the gap between two beeps is the same (but this magic length constant may change between files). Beep frequencies are always rounded to the next 100 Hz.

Your task is to count how many different frequency beeps are in the file.

Input

Input is a wav file with unsigned 8 bit samples at 44100 Hz (the wav header is 44 bytes long).

Output

Output is a single integer, the number of different frequency beeps modulo 1000000007.

Example input

Example input is provided as 0.wav among the real input files. Please do not submit the solution for the example input.

Example output

2