#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int t,a,b,c; scanf("%d",&t); while(t--) { scanf("%d%d",&a,&b); a=a%100; b=b%100; c=a+b; c=c%100; printf("%d\n",c); } //system("pause"); return 0; }