for(;[Q,W,E,R]=readline().match(/-?\d/g);)print(['range('+Math.min(A=Q*E,Q*=R,E*=W,R*=W),Math.max(A,Q,E,R)+')'])