#include using namespace std; int main() { char c; int x=0,y=0; do { cin >> c; if(cin.eof()) { break; } switch(c) { case 'n': y--; break; case 's': y++; break; case 'w': x--; break; case 'e': x++; break; } }while(1); cout << "(" << x << ", " << y << ")" << endl; return 0; }