a, b = gets.split a, b = a[0], b[0] puts a=='M' && b =='M' ? '8/33' : a != 'M' && b!='M' ? '8/31' : '8/32'