import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        String stra = sc.next();
        String strb = sc.next();
        if(stra.equals(strb)) {    //判断两个字符串变量的值是否相同
            System.out.println("same");
        } else {
            System.out.println("different");
        }
    }
}