The task is to generate the correct answer for a given math problem.

Ex Input:
Problem: a hiker walking at a constant rate of 4 kilometers per hour is passed by a cyclist travelling in the same direction along the same path at a constant rate of 24 kilometers per hour . the cyclist stops and waits for the hiker 5 minutes after passing her while the hiker continues to walk at her constant rate . how many minutes must the cyclist wait until the hiker catches up ?

Ex Output:
25


Ex Input:
Problem: what is the remainder when 1201 × 1202 × 1205 × 1207 is divided by 6 ?

Ex Output:
4


Ex Input:
Problem: what is the units digit of 23 ^ 2 * 17 ^ 2 * 39 ^ 2 ?

Ex Output:

1