p eval'Math.hypot '+'N-S,E-W'.gsub(/\w/,&gets.method(:count))