SP27213 PERIOD5 - Periodic function, trip 5
Description
Solar cycle predictions are used by various agencies and many industry groups. The solar cycle is important for determining the lifetime of satellites in low-Earth orbit, as the drag on the satellites correlates with the solar cycle \[...\]. [(NOAA)](http://www.swpc.noaa.gov/products/solar-cycle-progression)
[(Solar Cycle)](http://en.wikipedia.org/wiki/Solar_cycle)
Input Format
On the first line, you will be given an integer _N_. On the second line, you will be given integers _y_ : the first (0-indexed) _N×N_ values of a periodic function _f_ that is sum of periodic functions all with as period an integer _N_ at maximum. On the third line, you will be given _N×N_ integers _x_.
Output Format
Print _f(x)_ for all required _x_. See sample for details.