Each number is the maximum jump length from that position. Starting at index 0, can you reach the last index?
Input: one line of space-separated non-negative integers. Output: true or false.
true
false
Your program reads from stdin and prints to stdout.
Example 1
Input: 2 3 1 1 4
Output: true
Hints