Gauss made a formula to determine the day $$D$$ and the month $$M$$ in which Easter is celebrated in a certain year $$J$$. Suppose that the notation $$\lfloor x\rfloor$$ is used for the whole part of a real number $$x$$. In the first instance, the following values are defined: \[\begin{aligned} k &=\left\lfloor \frac{J}{100}\right\rfloor \\ a &= J\mathrm{\;mod 19}\\ b &= J\mathrm{\;mod 4}\\c&=J\mathrm{\;mod 7}\\ p &=\left\lfloor \frac{13 +8k}{25}\right\rfloor \\ q&= \left\lfloor \frac{k}{4}\right\rfloor \\ m &= (15-p+k-q) \mathrm{\;mod 30}\\ d &= (19a + m) \mathrm{\;mod 30}\\ n &= (4+k-q) \mathrm{\;mod 7}\\ e &= (2b+4c+6d+n) \mathrm{\;mod 7}\end{aligned}\] Here, we see all divisions as real divisions. Then, $$D$$ and $$M$$ are defined as follows:

 

Input

A year.

Output

The day and month in which Easter is celebrated in the year of the input, each on a separate line.

Example

Input:

2012

Output:

8
4