import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.math.BigInteger;
import java.util.Calendar;
public class TestOne {
public static void main(String[] args) {
/*
*
* */
BigInteger a = BigInteger.valueOf(2);
BigInteger b = BigInteger.valueOf(3);
BigInteger two = BigInteger.valueOf(2);
BigInteger three = BigInteger.valueOf(3);
BigInteger aa=null;
BigInteger bb=null;
for(int i=0;i<123456;i++) {
aa = a.multiply(two).subtract(b.multiply(three));
bb = a.multiply(three).add(b.multiply(two));
a = aa;
b = bb;
}
try {
System.setOut(new PrintStream(new File("E:\\out.txt")));//将结果输出到E盘
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(aa+(bb.compareTo(BigInteger.ZERO)<0?"-":"+")+bb+"i");
}
}