#include <stdio.h>

int main () {
    int left, right;

    printf("Small Calculator\n");
    printf("Any no-digit character to stop.\n");

    while (scanf("%d", &left) == 1) {
        if (getchar() != '+' || scanf("%d", &right) != 1) {
            printf("Format incorrect. Format: nnnn+mmmm\n ");
            while (getchar() != '\n') // ¶ªµô±¾ÐÐÊ£Óà×Ö·û
                ;
            continue;
        }
        printf("%d + %d = %d\n", left, right, left+right);
    }

    return 0;
}






