#include <stdio.h>

int main(){

	char n[1001];
	int i;
	int somap, somai;

	//11233

	gets(n);

	while (!(n[0] == '0' && n[1] == '\0')){
		i = 0;
		somap = 0;
		somai = 0;

		while (1){
			if (n[i] == '\0')
				break;

			somai += n[i] - 48;

			i++;

			if (n[i] == '\0')
				break;
			
			somap += n[i] - 48;

			i++;
		}


		if (somap % 11 == somai % 11){
			printf("%s is a multiple of 11.\n", n);
		}
		else{
			printf("%d %d\n", somap, somai);
			printf("%s is not a multiple of 11.\n", n);
		}

		gets(n);
	}

	return 0;
}