(f) From any fund or foundation or university or other educational institution or hospital or other medical institution or any trust or institution referred to in clause (23C) of section 10; or (g) From any trust or institution registered under section 12AA.