#!/bin/sh
read day
if [ '$day' = 'SUN' ] ; then
echo 0
elif [ '$day' = 'MON' ] ; then 
echo 1
elif [ '$day' = 'TUE' ] ; then
echo 2
elif [ '$day' = 'WED' ] ; then
echo 3
elif [ '$day' = 'THU' ] ; then
echo 4
elif [ '$day' = 'FRI' ] ; then
echo 5
else
echo 6
fi