#include <stdio.h>
#include <stdlib.h>
#define N 4
void func(int a, int b)
{
int i, t;
char sa[N + 2], sb[N + 2];
for (i = N; i ; --i) {
t = sa[i] - '0' + sb[i] - '0';
sa[i - 1] += t / 10;
sa[i] = t % 10 + '0';
}
}
int main()
{
int a, b;
func(a, b);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2RlZmluZSBOIDQKCnZvaWQgZnVuYyhpbnQgYSwgaW50IGIpCnsKICBpbnQgaSwgdDsKICBjaGFyIHNhW04gKyAyXSwgc2JbTiArIDJdOwoKICBzcHJpbnRmKHNhLCAiJTAqZCIsIE4gKyAxLCBhKTsKICBzcHJpbnRmKHNiLCAiJTAqZCIsIE4gKyAxLCBiKTsKICBmb3IgKGkgPSBOOyBpIDsgLS1pKSB7CiAgICB0ID0gc2FbaV0gLSAnMCcgKyBzYltpXSAtICcwJzsKICAgIHNhW2kgLSAxXSArPSB0IC8gMTA7CiAgICBzYVtpXSA9IHQgJSAxMCArICcwJzsKICB9CiAgcHJpbnRmKCJyZXN1bHQgPSAlc1xuIiwgc2EpOwoKfQoKaW50IG1haW4oKQp7CiAgaW50IGEsIGI7CgogIHByaW50ZigiYSBiID0gIik7CiAgc2NhbmYoIiVkICVkIiwgJmEsICZiKTsKICBmdW5jKGEsIGIpOwoKICByZXR1cm4gMDsKfQ==