A man openly masturbated on a Times Square train during morning rush hour this week, police say.

A 38-year-old woman told cops she was standing on the train as it moved between stations around 42nd Street and Times Square just before 8 a.m. Wednesday when she saw a man in a red hoodie openly touching himself.

When the train doors opened at the next stop, the woman exited and alerted cops.