#!/usr/bin/env ruby STDIN.each_line do |line| puts line.chomp.reverse end