Problem in reading the data from serial monitor

Hello everyone,

Recently, I faces an issue in reading the data from serial monitor. The problem is , I need to receive the data in two different formats such as string and integer , for example write 45 60 is the data in serial monitor. I need to receive the data write, 45, 60 in three separate variables. It needs to receive three inputs write 45 60 at a same instance. I tried Serial.read(), Serial.readString(), Serial.parseInt() functions, but it didn't fulfill my requirement. I don't know which function is apt for it. Please help me to do my task.

I think you should modify the code to read till the spaces and store it in three different variables. Thereby splitting the single big variable to three small ones