output matches Rs input