import java.util.*; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); String one = in.next(); String two = in.next(); in.close(); int ans = 31; if (one.charAt(0) == 'S') { ans++; if (two.charAt(0) == 'S') { ans++; } } System.out.printf("8/%d\n", ans); } }