>>33
input="20071111"
output = "#{input[0,4]}-#{input[4,2]}-#{input[6,2]}"
puts output