/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println(Arrays.equals(new long[]{55, 89, 1}, productFib(4895)));
	}

    public static long[] productFib(long prod) {
        for (int f1 = 0, f2 = 1, p = 1, t; ; t = f2, f2 += f1, f1 = t, p = f1 * f2) {
            if (p == prod) return new long[]{f1, f2, 1};
            else if (p > prod) return new long[]{f1, f2, 0};
        }
    }
}