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 that 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.
The first line contains three integers separated by spaces, representing the event date: , , , where 1980 \le Y \le 2020, 1 \le M \le 12, and is the day of month .
The second line contains three integers separated by spaces, representing the order receipt date: , , , where 1980 \le y \le 2020, 1 \le m \le 12, and is the day of month .
It is guaranteed that the event date is always after the order date.
Print a single integer—the number of working days required.
Example 1