For technical reasons, some programming languages (Kotlin, C #) will not be available during round 877. ×

E. Olympic Games
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

This problem was deleted from the contest, because it was used previously at another competition.

Input
Output
Examples
Input
1 1
1 2 100
Output
6