Let f(n) be the minimum number such that there is a proper edge-coloring of K-n with f(n) colors with no path or cycle of 4 edges using one or two colors. It is shown that [(1 + root 5)/2]n - 3 less than or equal to f(n) less than or equal to 2n(1+cj root log n) for a positive constants c. This improves the existent bounds on the variant of the Ramsey number f(n, 5, 9) studied by Erdos and Gyarfas. (C) 2000 Elsevier Science B.V. All rights reserved.