/*
#include <stdio.h>
#include <string.h>
int main()
{
int a=0,b,c,i,j,t=0;
int anw[11], ab[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]-'0')*1; //숫자로
anw[a] = 1;
printf("%d:%d\n", a-1, anw[a-1]);
printf("%d:%d\n", a, anw[a]);
}
else if(in[i]=='V')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*5;
anw[a] = 2;
printf("%d:%d\n", a-1, anw[a-1]);
printf("%d:%d\n", a, anw[a]);
}
else if(in[i]=='X')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*10;
anw[a] = 3;
printf("%d:%d\n", a-1, anw[a-1]);
printf("%d:%d\n", a, anw[a]);
}
else if(in[i]=='L')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*50;
anw[a] = 4;
printf("%d:%d\n", a-1, anw[a-1]);
printf("%d:%d\n", a, anw[a]);
}
else if(in[i]=='C')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*100;
anw[a] = 5;
printf("%d:%d\n", a-1, anw[a-1]);
printf("%d:%d\n", a, anw[a]);
}
else if(in[i]=='D')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*500;
anw[a] = 6;
printf("%d:%d\n", a-1, anw[a-1]);
printf("%d:%d\n", a, anw[a]);
}
else if(in[i]=='M')
{
a+=2;
anw[a-1] = (in[i-1]-'0')*1000;
anw[a] = 7.;
printf("%d:%d\n", a-1, anw[a-1]);
printf("%d:%d\n", a, anw[a]);
}
}
for(i=1;i<=a;i+=2)//+ | - //Error
{
if(anw[i] >= anw[i+2]) // +
{
anw[i] = 1; // 1=+
}
else
{
anw[i] = 0; // 0=-
}
printf("i:%d\n", anw[i]);
}
for(i=0;i<a;i++) // 연산
{
if(anw[i] ='1')
{
anw[i] = anw[i-1] + anw[i+1];
}
else
{
anw[i] = anw[i+1] - anw[i-1];
}
}
for(i=0;i<strlen(anw);i++) // test print
{
printf("ANW:%d\n", anw[i]);
}
}
*/



