#include <iostream>
#include <vector>
#include<bits/stdc++.h>
using namespace std;
int main() {
    std::vector<int> scv = {
        -3, 13, 6, -29, -31, 43, 46, 8, 7, 21, 12, 6, 31, 38, 2, 31,
        12, -8, 23, 14, -22, 37, 24, 19, -2, 24, 17, 31, -6, 2, 4, 11,
        -13, 41, 17, 4, 15, -9, -32, 33, 23, -6, 18, 32, 9, -6, 23, 9,
        -15, 20, 3, 19, -16, 11, 8
    };
    
    std::vector<int> vti = {
        -2, 11, 12, -25, -36, 30, 21, -11, -1, 5, 16, -11, 19, 19, 1, 28,
        15, -2, 12, 24, -10, 29, 6, 8, -1, 34, 19, 30, 24, 19, -13, -9,
        -25, 30, 8, 2, 12, 1, -37, 26, 16, -2, 14, 31, 12, 0, 11, 19,
        -7, 28, 19, 18, -24, 22, 20
    };

    int t = vti.size();
    vector<double> tmp(t,1.0);
    vector<vector<double>> telltale(t, tmp);
    
    for(int l=0;l< t;l++)
    {
    	for(int r=l; r<t;r++)
    	{
    		int cnt = r-l+1;
    		double d= 1.0;
    		for(int k=0; k<cnt;k++)
    		{
    			double scv_r = (100.0 +scv[l+k])/100,
    			vti_r = (100.0 +vti[l+k])/100;
    			d = (d*scv_r)/vti_r;
    		}
    		telltale[l][r]= d;
    	}
    }
    vector<vector<double>> distribution_telltale_rolling_period(t+1);
    for(int l=0;l<t;l++)
    {
    	for(int r=l;r<t;r++)
    	{
    		distribution_telltale_rolling_period[r-l+1].push_back(telltale[l][r]);
    	}
    }
    
	double prev =1.0;
	for(int i=0;i< t;i++)
	{
		double perc = ((telltale[0][i]- prev)/prev)*100;
		prev = telltale[0][i];
		cout<< perc<<endl;
	}
	
	// for(int i=1;i< (t+1);i++)
	// {
	// 	sort(distribution_telltale_rolling_period[i].begin(),
	// 	distribution_telltale_rolling_period[i].end());
	// 	//cout<<"\n"<<i;
	// 	for(int j=0; j< distribution_telltale_rolling_period[i].size();j++)
	// 	{
	// 		cout<<"(";
	// 		cout<<i<<","<<distribution_telltale_rolling_period[i][j]<<"),";
	// 	}
	// }
    return 0;
}
