read n $[i={0..20},j={0..20},s=n-i*5-j*2,z+=i>=j>s%3&s>=0] echo $z