productFib = (prod) ->
[a, b] = [0, 1]
[a, b] = [b, a+b] while a*b < prod
[a, b, a*b==prod]
console.log productFib 4895
productFid = (plod) ->
[c, d] = [0, 1]
[c, d] = [d, c+d] while c*d < plod
[c, d, c*d==plod]
console.log productFid 4895