Perfect Date

khatribiru Victory Day JU CSE IDPC 2...
Limits 1s, 512 MB

What is your idea about the perfect date? Umm... I mean, the Date Format. You may have already known that American and European people use different date format. Sometimes, it gets super confusing. For example, 10/12/2017 may mean 10th December 2017 or 12th October 2017. Americans usually prefer writing dates in MM/DD/YYYY format where Month comes before Day. On the other hand, Europeans prefer DD/MM/YYYY.
In this problem, you will be given two dates. First one can be in either American or European style and second one can also be in either American or European style. If both the dates point to only a single day, you will print "Same". If the dates are completely different, you will print "Different". Otherwise, you will print "Not Sure".

Input

Input begins with an integer T denoting the number of test cases (T<=100).
Each test case contains two valid dates from 01/01/2000 to 01/01/2018 in two separate lines.

Output

Print the answer in a single line for each test case. See the samples for exact formatting.

Sample

InputOutput
2
30/11/2017
11/30/2017
25/03/2012
10/19/2001
Same
Different

Submit

Login to submit.

Statistics

45% Solution Ratio
CODER_RAFINEarliest, Apr '18
subhashis_cseFastest, 0.0s
abid1729Lightest, 0 B
mdvirusShortest, 262B
Toph uses cookies. By continuing you agree to our Cookie Policy.