1 #include <iostream>
2 #include <cstdio>
3 #include <cstdlib>
4 #include <cmath>
5 #include <cstring>
6 #include <cctype>
7
8 #include <vector>
9 #include <list>
10 #include <deque>
11 #include <string>
12 #include <algorithm>
13 #include <stack>
14 #include <queue>
15 #include <map>
16 #include <set>
17
18 using namespace std;
19
20
21
22 int main()
23 {
24
25 char aa[100],bb[100];
26 int a,b;
27
28
29
30
31 int i,j,k;
32
33 while(scanf("%s %s",aa,bb)!=EOF)
34 {
35 getchar();
36
37
38
39 k=0;
40
41
42 a=0;
43
44
45 i=0;
46
47 int tag=1;
48
49 if(aa[0]=='-')
50 {tag=-1;i++;}
51
52 while(aa[i])
53 {
54
55 if(isdigit(aa[i]))
56 {
57
58 a*=10;
59
60 a+=aa[i]-'0';
61 }
62 i++;
63 }
64
65
66 a*=tag;
67
68
69 tag=1;
70 i=0;
71
72 b=0;
73
74
75 if(bb[0]=='-')
76 {tag=-1;i++;}
77
78 while(bb[i])
79 {
80 if(isdigit(bb[i]))
81 {
82
83 b*=10;
84 b+=bb[i]-'0';
85 }
86 i++;
87 }
88
89
90 b*=tag;
91
92
93 printf("%d\n",a+b);
94 }
95
96
97
98
99
100
101
102
103 return 0;
104 }