n = raw_input() m = raw_input() if n.isdigit() == True and m.isdigit() == True: n = int(n) m = int(m) ans = n + m print ans else: print "NG"