#include <stdio.h>

int main(void) {
	int a, b, n;
	scanf("%d%d", &a, &b);
	n = (b - a + 100) % 100;
	printf("%d", n);	
	return 0;
}
