//PascalABC.NET
var
nt, dt : integer;
begin
var n1 := 1; var d1 := 1;
var n := 2; var d := 1;
var i := 2;
while i < 5 do begin
nt := n; dt := d;
n := n + n1; n1 := nt;
d := d + d1; d1 := dt;
i += 1
end;
writeln(n,'/',d);
n1:=1; d1:=1;
n:= 2; d:=1;
while (abs(n/d - n1/d1) > 0.001) do begin
nt := n; dt := d;
n := n + n1; n1 := nt;
d := d + d1; d1 := dt;
end;
writeln(n,'/',d,'-',n1,'/',d1,'=',n/d-n1/d1)
end.