P23733 [AtCoder] [ABC033A] Password
入门
题目描述

Problem Description

You are a member of the game development team. Currently, you are implementing the part where the player needs to decide the password required to play the game.

This password is a 4-digit number, where each digit is one of the numbers from 0 to 9. The password may start with 0.

For security reasons, passwords where all 4 digits are the same number are not allowed. Given a 4-digit number \( N \) entered by the player, determine if all 4 digits are the same.

Input Format

The input is given from the standard input in the following format:

\( N \)

  • The first line contains \( N \), which is a 4-character string consisting of digits from 0 to 9.
  • \( N \) may start with 0.

Output Format

If \( N \) consists of the same digit for all 4 digits, output SAME. Otherwise, output DIFFERENT.

Ensure to include a newline at the end of the output.

Sample Input and Output

Sample Input #1

2222

Sample Output #1

SAME

Sample Input #2

1221

Sample Output #2

DIFFERENT

Sample Input #3

0000

Sample Output #3

SAME

Notes/Hints

Sample Explanation 1

All 4 digits are the same number.

Sample Explanation 2

All 4 digits are not the same number.

Sample Explanation 3

\( N \) may start with 0.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
2222
样例输出
SAME