Tip 1 : Be Calm
Tip 2 : Be polite
Tip 3 : Be well prepared
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.



As the answer can be large, return your answer modulo 10^9 + 7.


An input maze is shown below

Elizabeth is trapped in the green cell and Meliodas can enter the maze from any of the yellow cells.



A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.
You need to print your answer modulo 10^9 + 7.
Let us take A = [1,2,3] and P = 4.
All the subsequences not having product more than ‘4’ are {1}, {2}, {3}, {1,2}, {1,3}. Therefore count is equal to ‘5’.



You have an infinite number of umbrellas of each type.
If it is not possible to shelter exactly ‘M’ people then print -1.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: