read n if ((n<7)); then echo $n else echo $(((n-6)*7+6)) fi