#include #define INF 990000000 //1 using namespace std; int main() { string s; cin>>s; int yok=0,tat=0; for(int i=0;i<(int )s.size();i++){ switch(s[i]){ case 'N':tat++; break; case 'E':yok++; break; case 'W':yok--; break; case 'S':tat--; break; } } double q=sqrt(abs(tat)*abs(tat)+abs(yok)*abs(yok)); cout <