// Sum of fibonacci series
#include <stdio.h>
int main()
{
int fib[1000];
int num, sum = 1, i;
scanf(" %d", &num);
fib[0] = 0;
fib[1] = 1;
printf(" %d + %d", fib[0], fib[1]);
for(i = 2; i < num; i++){
fib[i] = fib[i-1] + fib[i-2];
printf(" + %d", fib[i]);
sum += fib[i];
}
printf("
= %d", sum);
return 0;
}