import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(sc.hasNext()) {
BigInteger a=sc.nextBigInteger();
BigInteger b=sc.nextBigInteger();
BigInteger c=sc.nextBigInteger();
for(int i=3;i<=99;i++) {
BigInteger s=a.add(b).add(c);
a=b;
b=c;
c=s;
}
System.out.println(c);
}
}
}
1044285 | hpu_yw | 某种序列 | ![]() | 54 | 492 | java | 11-05 17:41:03 |