/*
#include <stdio.h>
int main()
{
int N;
return 0;
}
*/
/*
#include <stdio.h>
typedef struct
{
int a,b;
}st;
int main()
{
int n,i,j,c;
st s[101];
st temp;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d %d",&s[i].a,&s[i].b);
}
for(i=1;i<n;i++)
{
for(j=1;j<=n-i;j++)
{
if (s[j].a>s[j+1].a)
{
temp = s[j];
s[j] = s[j+1];
s[j+1] = temp;
}
}
}
for(i=1;i<=n;i++)
{
printf("%d %d\n",s[i].a,s[i].b);
}
return 0;
}
*/
/*
#include <stdio.h>
int a[10001];
int n, i, j, temp, key;
int main()
{
scanf("%d", &n);
for (i = 1; i <= n; i++)
scanf("%d", &a[i]);
for (i=2; i<=n; i++)
{
key=a[i];
for(j=i-1;j>=1&&a[j]>key;j--)
{
a[j+1]=a[j];
}
a[j+1]=key;
}
for (i=1; i<=n; i++)
printf("%d\n", a[i]);
return 0;
}
*/
/*
#include <stdio.h>
void myswap(int* pa,int* pb)
{
int temp;
if(*pa>*pb)
{
temp=*pa;
*pa=*pb;
*pb=temp;
}
}
main()
{
int a, b;
scanf("%d%d", &a, &b);
myswap(&a, &b);
printf("%d %d", a, b);
}
*/
#include <stdio.h>
void convert(double *grades, double *scores, int size)
{
int i;
for(i=0;i<size;i++)
{
scores[i]=grades[i]/4.3*100;
}
}
int main()
{
double grades[10],scores[10];
int size=10,i;
for(i=0;i<size;i++)
{
scanf("%lf ",&grades[i]);
}
convert(grades,scores,size);
for(i=0;i<size;i++)
{
printf("%lf ",grades[i]);
}
printf("\n");
for(i=0;i<size;i++)
{
printf("%lf ",scores[i]);
}
return 0;
}