Is the other side hot?
Statement
Goal
You've been thinking about the weather in your region and you start to ask yourself: "What is the season in the other part of the planet? 🤔"Given the region you are in the planet (northern or southern hemisphere), N seasons in your region, and a space separated string of seasons you are wondering, you need to output the current season in the other hemisphere.
If you are in the northern print the southern season and if you are in the southern, print the northern season and if N is equals 0 output a single line with the message "Not thinking"
Input
Line 1: The region you are. S for Southern and N for Northern.
Line 2: The number N of seasons you are wondering.
Line 3: A space separated string of seasons you are wondering in uppercase: "WINTER", "SPRING", "SUMMER" and "AUTUMN"
Line 2: The number N of seasons you are wondering.
Line 3: A space separated string of seasons you are wondering in uppercase: "WINTER", "SPRING", "SUMMER" and "AUTUMN"
Output
N lines with the respective seasons, one for each line.
Constraints
0 < N < 100
5 < length of seasons < 700
5 < length of seasons < 700
Example
Input
S 1 WINTER
Output
SUMMER
Game modes
Fastest, Shortest
Test cases
Test 1 Test
Input
S
1
WINTER
Output
SUMMER
Validator 1 Validator
Input
N
1
SUMMER
Output
WINTER
Test 2 Test
Input
N
4
WINTER SPRING SUMMER AUTUMN
Output
SUMMER
AUTUMN
WINTER
SPRING
Validator 2 Validator
Input
N
4
SUMMER AUTUMN WINTER SPRING
Output
WINTER
SPRING
SUMMER
AUTUMN
Test 3 Test
Input
S
12
WINTER WINTER WINTER SUMMER SUMMER SUMMER SPRING SPRING SPRING AUTUMN AUTUMN AUTUMN
Output
SUMMER
SUMMER
SUMMER
WINTER
WINTER
WINTER
AUTUMN
AUTUMN
AUTUMN
SPRING
SPRING
SPRING
Validator 3 Validator
Input
N
12
AUTUMN WINTER SPRING SPRING AUTUMN WINTER WINTER AUTUMN AUTUMN SUMMER SUMMER SPRING
Output
SPRING
SUMMER
AUTUMN
AUTUMN
SPRING
SUMMER
SUMMER
SPRING
SPRING
WINTER
WINTER
AUTUMN
Test 4 Test
Input
N
0
Output
Not thinking
Validator 4 Validator
Input
S
0
Output
Not thinking
Test 5 Test
Input
N
15
WINTER SUMMER SPRING AUTUMN WINTER SUMMER SPRING AUTUMN WINTER SUMMER SPRING AUTUMN SUMMER SUMMER AUTUMN
Output
SUMMER
WINTER
AUTUMN
SPRING
SUMMER
WINTER
AUTUMN
SPRING
SUMMER
WINTER
AUTUMN
SPRING
WINTER
WINTER
SPRING
Validator 5 Validator
Input
S
20
SUMMER WINTER SPRING SPRING WINTER SUMMER SPRING SPRING WINTER SUMMER WINTER SPRING SPRING WINTER SUMMER SUMMER SUMMER SUMMER SPRING WINTER
Output
WINTER
SUMMER
AUTUMN
AUTUMN
SUMMER
WINTER
AUTUMN
AUTUMN
SUMMER
WINTER
SUMMER
AUTUMN
AUTUMN
SUMMER
WINTER
WINTER
WINTER
WINTER
AUTUMN
SUMMER
Solution language
Solution
Stub generator input