for(;;print(c+"/"+" anebarprayunulugepctovec".search(b.slice(1))/2+"/"+a))[a,b,c]=readline().split(" ")