@staticmethod
def a():
    n = set(sys.stdin.readline().rstrip())
    print(('SAME' if (len(n) == 1) else 'DIFFERENT'))
@staticmethod
def a():
    n = set(sys.stdin.readline().rstrip())
    print(('SAME' if (len(n) == 1) else 'DIFFERENT'))