In search of an earthquake-proof building