Holiday
A company renowned for its exceptional event organization skills faced a surge in orders, leading to time constraints for its employees. To manage this, they decided to increase their service fees based on the urgency of the order: the closer the event date, the higher the price. To implement this, they need a quick way to calculate the number of working days between when an order is received online and the event date.
Your task is to write a program that performs this calculation. Assume the employees have only one day off per week—Sunday—and they work on holidays unless they fall on a Sunday. The event day itself is not counted as a working day, but the order receipt day is included unless it is a Sunday.
Input
The first line contains three integers separated by spaces, representing the event date: D, M, Y, where Y is the year (1980 ≤ Y ≤ 2020), M is the month (1 ≤ M ≤ 12), and D is the day of the month M.
The second line contains three integers separated by spaces, representing the order receipt date: d, m, y, where y is the year (1980 ≤ y ≤ 2020), m is the month (1 ≤ m ≤ 12), and d is the day of the month m.
It is guaranteed that the event date is always after the order date.
Output
Output a single integer on one line—the number of working days required.