273 engine

I bought a 65 with a 273 engine in it, the engine is done, my question is can I put any 318,340 or 360 engine in it's place? I'd like to bolt replacement engine to current transmission. Thanks, Dan.