@@ -0,0 +1,548 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A  private static boolean isFibo(long n) %7B%0A    long a = 0, b = 1;%0A    while (a + b %3C n) %7B%0A      long c = a + b;%0A      a = b;%0A      b = c;%0A    %7D%0A    return (a + b) == n;%0A  %7D%0A%0A  public static void main(String%5B%5D args) %7B%0A    Scanner in = new Scanner(System.in);%0A    int t = in.nextInt();%0A    while (t %3E 0) %7B%0A      long n = in.nextLong();%0A      System.out.println(isFibo(n) ? %22IsFibo%22 : %22IsNotFibo%22);%0A      t--;%0A    %7D%0A  %7D%0A%7D%0A

add solution