Touchdown!

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

In a game of American Football, there are several factors to take into consideration when detailing the rules of the game. The goal of the game is to move the football across the field into the endzone of the defending team through a series of plays, which form a drive.  In each play, the attacking team may either gain or lose a number of yards, that is, their position on the field moves either towards or away from the defending team's endzone.

In the simplified version of football that we will consider, a team has four chances (in up to four plays) to advance the ball 1010 yards downfield; if they are successful, they will have achieved a "first down" and keep possession of the ball.  If they achieve a first down, they have another up to four plays to continue their drive towards the defending team's endzone.  If they keep possession and reach the defending team's endzone, they will have achieved a Touchdown.  If they are pushed back into their own endzone, a Safety occurs and ends the drive. Otherwise the team loses possession of the ball and Nothing happens.

Sadly, the outcome of a drive has been lost, and all that remains is the yards gained or lost on each play! Your job is to determine whether or not a Touchdown, Safety, or Nothing occurred on the given drive.

For simplicity, we will assume that the team starts the drive on their own 2020 yard line on a 100100 yard field (with 00 being the team's own endzone, and 100100 being the defending team's endzone). This means that a touchdown is scored if at least 8080 yards are gained in total, relative to the starting position, and without losing possession due to failing to get a first down.  (If a team gains 8080 yards on the first play, they will have achieved a Touchdown even though they didn't achieve a first down in between.) A safety occurs if the team is pushed back 2020 yards from their original starting position, which would place them in their own endzone.  Nothing occurs if neither of these events occurs.

입력

The input consists of a line containing one integer NN (1N151 \le N \le 15), which is the number of plays that this given drive recorded. Following this line are NN numbers representing the numbers of yards gained or lost on each particular play. Each given number will be between 100-100 and 100100 yards since that is the length of the football field.

출력

Output a single word, the result of the drive! If a touchdown is achieved, output "Touchdown", if a safety is achieved, output "Safety", else output "Nothing".  (Do not add a period at the end.) Once the outcome has been determined, your program should ignore the remaining yards listed in the drive.