Alan is a student. He likes to play PC games.

One day, Alan's mother talked to him "Do not play so many video games."

He wants to count how much time he spends on video games.

**Hint: The gaming interval may across midnight.**

The first line contains three integers $h_{st},\ m_{st},\ s_{st}\ (0\leq h_{st}<24,\ 0\leq m_{st},\ s_{st}<60)$, representing that Alan starts to play the game.

The second line contains three integers $h_{ed},\ m_{ed},\ s_{ed}\ (0\leq h_{ed}<24,\ 0\leq m_{ed},\ s_{ed}<60)$, representing the time that Alan closes the game.

One line contains three integers $h_{tot}\ m_{tot}\ s_{tot}$ － the amount of time that Alan plays the video game.

The three integers must be in the ranges: $0 \leq h_{tot} < 24,\ 0 \leq m_{tot},\ s_{tot} < 60$.

If any of the above integers has less than $2$ digits, fill in the prefix $0$.

22 34 51

03 09 20

03 09 20

04 34 29

No. | Testdata Range | Constraints | Score |
---|---|---|---|

1 | 0~4 | $h_{st}\leq h_{ed}$ and $m_{st}\leq m_{ed}$ and $s_{st}\leq s_{ed}$ | 5 |

2 | 0~9 | The interval won't across midnight | 10 |

3 | 0~15 | No specified restriction | 10 |

No. | Time Limit (ms) | Memory Limit (KiB) | Output Limit (KiB) | Subtasks |
---|---|---|---|---|

0 | 1000 | 65536 | 65536 | |

1 | 1000 | 65536 | 65536 | |

2 | 1000 | 65536 | 65536 | |

3 | 1000 | 65536 | 65536 | |

4 | 1000 | 65536 | 65536 | |

5 | 1000 | 65536 | 65536 | |

6 | 1000 | 65536 | 65536 | |

7 | 1000 | 65536 | 65536 | |

8 | 1000 | 65536 | 65536 | |

9 | 1000 | 65536 | 65536 | |

10 | 1000 | 65536 | 65536 | |

11 | 1000 | 65536 | 65536 | |

12 | 1000 | 65536 | 65536 | |

13 | 1000 | 65536 | 65536 | |

14 | 1000 | 65536 | 65536 | |

15 | 1000 | 65536 | 65536 |