if (Serial.available())
{
input = Serial.read();
MIDI.write(input);
If there is something available to read, read it, and send it to the other port.
input = MIDI.read();
Serial.println(input, DEC);
Then, regardless of whether there is anything to read, read it and send it to the other port.
Why?