#
include<stdio.h>
int main()
{
int n , m , p , c , sum;
while (scanf( " %d %d %d %d " , & n , & m , & p , & c))
{
if ( ! n && ! m && ! p && ! c)
break ;
sum = n - m + p;
printf ( " %d/n " , sum);
}
return 0 ;
}
int main()
{
int n , m , p , c , sum;
while (scanf( " %d %d %d %d " , & n , & m , & p , & c))
{
if ( ! n && ! m && ! p && ! c)
break ;
sum = n - m + p;
printf ( " %d/n " , sum);
}
return 0 ;
}