var a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,count:integer;
begin
count:=0;
for a1:=0 to 10 do
for a2:=0 to 10 do
if a1+a2>=10 then //前两靶达不到10环,后8靶全10环也达不到90环.
for a3:=0 to 10 do
if a1+a2+a3>=20 then
for a4:=0 to 10 do
if a1+a2+a3+a4>=30 then
for a5:=0 to 10 do
if a1+a2+a3+a4+a5>=40 then
for a6:=0 to 10 do
if a1+a2+a3+a4+a5+a6>=50 then
for a7:=0 to 10 do
if a1+a2+a3+a4+a5+a6+a7>=60 then
for a8:=0 to 10 do
if a1+a2+a3+a4+a5+a6+a7+a8>=70 then
for a9:=0 to 10 do
if a1+a2+a3+a4+a5+a6+a7+a8+a9>=80 then
for a10:=0 to 10 do
if a1+a2+a3+a4+a5+a6+a7+a8+a9+a10=90 then
begin
count:=count+1;
writeln(a1,'+',a2,'+',a3,'+',a4,'+',a5,'+',a6,'+',a7,'+',a8,'+',a9,'+',a10,'=','90');
end;
writeln(count);
readln;
end.