/* 3021
#include <stdio.h>
#include <string.h>
#define SIZE 101
int stack[SIZE];
int top=-1;
void push(int data)
{
if(top==SIZE-1)
return;
stack[++top]=data;
}
int pop()
{
if(top==-1)
return;
return stack[top--];
}
int main()
{
int i, sum=0,lena,lenb,c=0;
char a[SIZE]= {}, b[SIZE]= {}, t[SIZE];
scanf("%s %s",a,b);
if(strlen(a)<strlen(b))
{
strcpy(t, a);
strcpy(a, b);
strcpy(b, t);
}
lena=strlen(a); lenb=strlen(b);
while(lena>0)
{
if(lenb>0) sum=a[--lena]-'0'+b[--lenb]-'0'+c;
else sum=a[--lena]-'0'+c;
c=sum/10;
push(sum%10);
}
if(c!=0) push(c);
while(top>-1) printf("%d", pop());
return 0;
}
/* 3102
#include <stdio.h>
#include <stdlib.h>
#define SIZE 250
int stack[SIZE];
int TOP=-1;
void push(int data)
{
if(TOP==SIZE-1)
return;
stack[++TOP]=data;
}
int pop()
{
if(TOP==-1)
return;
return stack[TOP--];
}
void top()
{
if(TOP==-1)
printf("-1\n");
else
printf("%d\n", stack[TOP]);
}
void size()
{
printf("%d\n", TOP+1);
}
void empty()
{
if(TOP==-1)
printf("true\n");
else
printf("false\n");
}
int main()
{
int i, j, n, a;
char stl[SIZE]; // 입력 받을 문자열
scanf("%d\n", &n);
for(i=0; i<n; i++)
{
gets(stl);
if(stl[0]=='p')
{
if(stl[1]=='u')
{
a=0;
//push 할 숫자 구해서 push하기
for(j=6; stl[j] != ' '; j++)
a = a*10 + stl[j]-'0';
push(a);
}
else
{
pop();
}
}
else if(stl[0]=='t')
{
top();
}
else if(stl[0]=='s')
{
size();
}
else
{
empty();
}
}
return 0;
}
*/
/*
#include <stdio.h>
#include <string.h>
#define SIZE 201
int stack[SIZE];
int top=-1;
void push(int data)
{
if(top==SIZE-1)
return;
stack[++top]=data;
}
int pop()
{
if(top==-1)
return;
return stack[top--];
}
*/
/* 3127
#include <stdio.h>
int main()
{
char a[201];
gets(a);
int stack[101];
int top = -1;
for(int i=0;a[i]!='\0';i++){
if(a[i]>=48&&a[i]<=57){
int num = 0;
for(;;i++){
if(a[i]<48||a[i]>57) break;
num = num*10 + (a[i] - 48);
}
top++;
stack[top] = num;
}
else{
if(a[i]=='+'){
stack[top-1] = stack[top-1] + stack[top];
top--;
}
else if(a[i]=='-'){
stack[top-1] = stack[top-1] - stack[top];
top--;
}
else if(a[i]=='*'){
stack[top-1] = stack[top-1] * stack[top];
top--;
}
}
}
printf("%d", stack[0]);
return 0;
}
*/
/* 2023
#include <stdio.h>
int main()
{
int i, n;
scanf("%d", &n);
print("%s", );
}
*/
/* 4624
#include <stdio.h>
#include <string.h>
#define SIZE 31
int stack[SIZE];
int top=-1;
void push(int data)
{
if(top==SIZE-1)
return;
stack[++top]=data;
}
int pop()
{
if(top==-1)
return;
return stack[top--];
}
int main()
{
}
*/