#include <stdio.h>#include <stdlib.h>
int r(int num){ int sum = 0; while(num >= 1) { sum = sum*10+num%10; num /= 10;}return sum;}
int main(int argc, char *argv[]){ int n,n1,n2,i; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d %d",&n1,&n2); printf("%d/n",r( r(n1)+r(n2)) );
} return 0;}