#include<stdio.h> int reverse(int n){ int m=0; while (n != 0){ m = m * 10 + n % 10; n = n / 10; } return m; } int main(){ int a, b; while (scanf("%d %d", &a, &b) != EOF){ if (reverse(a + b) == reverse(a) + reverse(b)){ printf("%d\n", a + b); } else{ printf("NO\n"); } } }