Using ab initio density functional theory, we have investigated the self-assembled pattern of HATCN molecules on gold surface.