Олимпиадный тренинг

Задача 33651. Olympic Games


Everyone knows that the 2012 Summer Olympics took place in London, but not everyone is familiar with the history of major sports competitions. The tradition of games originated in Ancient Greece, but was forgotten at the end of the ancient era and reappeared only at the end of the 19th century thanks to the French public figure Pierre de Coubertin.

Since 1896, the Summer Olympic Games have been held again, and since 1924 — winter, and both types of competitions are held every four years. At first, the winter and summer Olympics were held in the same year, but at the end of the 20th century, the International Olympic Committee decided to establish a two-year break between different types of Games. Thus, 1992 was last marked by the holding of both summer and winter Olympic Games, in 1994 only winter ones were held, in 1996 — summer, and since then they continue to alternate.

It is also known that in 1916, 1940 and 1944 the Olympic Games were canceled due to the First and Second World Wars, and in 1906 an extraordinary Olympics was held.

It is required to write a program that, for a given year, will determine whether the Olympic Games were held this year and whether they were summer or winter.

Input: The program receives one natural number as input N (1800 ≤ N  ≤ 2014) — year number.

Output: Print "winter" if only the Winter Olympics were held this year, "summer" if only the Summer Olympics were held, "winter summer" if both Olympiads were held , and "nothing" if there were no Olympic Games that year.

Examples
# Input Output
1 1896 summer
2 1924 winter summer