def handle(switch)
case switch
when 'a',
print(switch << 'a')
when 'n',
print(switch.sub!('b','n'))
when 'q',
print(switch.gsub('b','q'))
when 'b',
nil
else
print('s!')
end
end
handle('b')
ZGVmIGhhbmRsZShzd2l0Y2gpCiAgY2FzZSBzd2l0Y2gKICB3aGVuICdhJywKICAgIHByaW50KHN3aXRjaCA8PCAnYScpCiAgd2hlbiAnbicsCiAgICBwcmludChzd2l0Y2guc3ViISgnYicsJ24nKSkKICB3aGVuICdxJywKICAgIHByaW50KHN3aXRjaC5nc3ViKCdiJywncScpKQogIHdoZW4gJ2InLAogICAgbmlsCiAgZWxzZQogICAgcHJpbnQoJ3MhJykKICBlbmQKZW5kCgpoYW5kbGUoJ2InKQ==