#include <iostream>
#include <string.h>
#include <vector>
#include <algorithm>
#include <sstream>
using namespace std;
string add_large_num(string a, string b){
int a_len = a.size() - 1;
int b_len = b.size() - 1;
int carry = 0;
string res;
while(a_len >= 0 && b_len >= 0){
int cur = a[a_len--] - '0' + b[b_len--] - '0' + carry;
carry = 0;
if(cur > 9){
cur = cur % 10;
carry = 1;
}
res += to_string(cur);
}
while(a_len >= 0){
int cur = a[a_len--] - '0' + carry;
carry = 0;
if(cur > 9){
cur = cur % 10;
carry = 1;
}
res += to_string(cur);
}
while(b_len >= 0){
int cur = b[b_len--] - '0' + carry;
carry = 0;
if(cur > 9){
cur = cur % 10;
carry = 1;
}
res += to_string(cur);
}
if(carry > 0)
res += to_string(1);
reverse(res.begin(), res.end());
return res;
}
int main(){
string a = "99";
string b = "199";
cout << add_large_num(a, b) << endl;
return 0;
}