@@ -0,0 +1,653 @@
+//https://www.hackerrank.com/challenges/fibonacci-modified%0Aimport java.io.*;%0Aimport java.math.BigInteger;%0A%0Apublic class Solution %7B%0A  public static void main(String%5B%5D args) throws IOException%7B%0A    %0A    //Get input%0A    String%5B%5D line = (new BufferedReader(new InputStreamReader(System.in))).readLine().split(%22 %22);%0A    BigInteger A = BigInteger.valueOf(Byte.parseByte(line%5B0%5D));%0A    BigInteger B = BigInteger.valueOf(Byte.parseByte(line%5B1%5D));%0A    %0A    //Solve%0A    for(byte n = (byte)(Byte.parseByte(line%5B2%5D) - 2); n %3E 0; --n)%7B%0A      BigInteger C = B.multiply(B).add(A);%0A      A = B;%0A      B = C;%0A    %7D%0A    %0A    //Print output%0A    System.out.print(B);%0A  %7D%0A%7D%0A

Create fibonacci-modified.java