Given the hype rating of each of Tóti’s songs in the order he wrote them, how many setlists can he make?
The first line of input consists of an integer(
), the number of songs Tóti has written. The second line consists of
integers ,each in
, giving the hype ratings of the
.
Output the number of setlists Tóti can make. Since this number can be large, print it modulo.