/*2020 아로마 수
#include <stdio.h>
int main()
{
int a=0,b,c,i,j,t=0;
int anw[11];
char in[42];
gets(in);
for(i=0;i<strlen(in);i++)
{
if(in[i]=='I')
{
a+=2;
anw[a-1] = in[i-1]*1; //숫자로
anw[a] = 1;
printf("%d:%d\n", a-1, anw[a-1]);
}
else if(in[i]=='V')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*5;
anw[a] = 5;
printf("%d:%d\n", a-1, anw[a-1]);
}
else if(in[i]=='X')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*10;
anw[a] = 10;
printf("%d:%d\n", a-1, anw[a-1]);
}
else if(in[i]=='L')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*50;
anw[a] = 50;
printf("%d:%d\n", a-1, anw[a-1]);
}
else if(in[i]=='C')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*100;
anw[a] = 100;
printf("%d:%d\n", a-1, anw[a-1]);
}
else if(in[i]=='D')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*500;
anw[a] = 500;
printf("%d:%d\n", a-1, anw[a-1]);
}
else if(in[i]=='M')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*1000;
anw[a] = 1000;
printf("%d:%d\n", a-1, anw[a-1]);
}
}
for(i=0;strlen(anw);i++)
{
printf("%d:%d\n", i, anw[i]);
}
}
*/



