>>149
puts a[0..n-1].join('.')