puts`factor #{gets}`.count(' ')>2?:YES:'NO'