Var a,b,c,x:integer;
begin
readln(x);
a:=x mod 10;
x:=x div 10;
b:=x mod 10;
c:=x mod 10;
if(a=b) or(a=c) or (b=c) then writeln('Yes')
else writeln('No');
end.
Var a,b,c,x:integer;
begin
readln(x);
a:=x mod 10;
x:=x div 10;
b:=x mod 10;
x:=x div 10;
c:=x mod 10;
if(a=b) or(a=c) or (b=c) then writeln('Yes')
else writeln('No');
end.