for(<>){{}while s/([^,]+)(.*==.*)\1/$2/;print/[^,=\n]/?"different\n":"same\n"}