while 1:print hash(raw_input())/79033%7%2*"different"or"same"