
let () = Scanf.scanf "%s" @@ fun s -> Printf.printf "%d\n" @@
  if s = "SUN"
  then 7
  else if s = "MON"
  then 6
  else if s = "TUE"
  then 5
  else if s = "WED"
  then 4
  else if s = "THU"
  then 3
  else if s = "FRI"
  then 2
  else 1