AT_abc438_a [ABC438A] First Contest of the Year

Description

On a certain planet, a year has $ D $ days, and contests are held every $ 7 $ days. Contests never span across days. The first contest of a certain year was held on the $ F $ -th day of the year. On what day of the next year will the first contest of the next year be held? The constraints of this problem guarantee that at least one contest will be held in the next year.

Input Format

The input is given from Standard Input in the following format: > $ D $ $ F $

Output Format

Print the integer $ N $ such that the next contest is held on the $ N $ -th day of the year.

Explanation/Hint

### Sample Explanation 1 If the first contest of a certain year was held on the $ 4 $ th day of the year, the first contest of the next year will be held on the $ 3 $ rd day of the year. ### Constraints - $ 10 \leq D \leq 366 $ - $ 1 \leq F \leq 7 $ - All input values are integers.