Exact S-matrix for two-dimensional string theory