#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
//高精度加法
void test01()
{
int a[3000], b[3000], c[3000];
char a0[3000], b0[3000];
for (int i = 0; i < 3000; i++)
{
c[i] = 0;
}
scanf("%s", &a0);
scanf("%s", &b0);
int numa = strlen(a0);
int numb = strlen(b0);
int m = min(numa,numb);// m = min(numa, numb);
int n = max(numa,numb);
for (int i = numa-1; i >= 0; i--)
{
a[numa-i-1] = a0[i] - 48;
}
for (int i = numb - 1; i >= 0; i--)
{
b[numb-i-1] = b0[i] - 48;
}
for (int i =0; i<n; i++)
{
c[i] = a[i] + b[i];
}
for (int i = 0; i < n; i++)
{
if (c[i] >= 10)
{
c[i + 1] += c[i] / 10;
c[i] %= 10;
}
}
if (c[n] != 0)
{
printf("%d", c[n]);
}
for (int i = n-1; i >=0 ; i--)
{
printf("%d", c[i]);
}
printf("\n");
}
int main()
{
test01();
system("pause");
return 0;
}