'use strict' const main = input => { const args = input.split('\n').map(arg => arg.split(' ')) const s = args[0].slice(0, 2) const tmp = [false, false] for (let i = 0; i < 2; i++) { if (s[i] === 'Sat' || s[i] === 'Sun') tmp[i] = true } if (tmp[0] && tmp[1]) console.log('8/33') else if (tmp[0]) console.log('8/32') else console.log('8/31') } main(require('fs').readFileSync('/dev/stdin', 'utf8'))