#!/usr/bin/env ruby input = (ARGV.first.nil? ? DATA : ARGF) .read result = :solution p result __END__