eolymp
bolt
Try our new interface for solving problems

3

Time limit 1 second
Memory limit 64 MiB

Дивись українську версію задачі

Examples

Input example #1
200 20 15 1000 500
Output example #1
2