#include using namespace std; int main(){ int x, y; scanf("%d %d", &x, &y); if (x >= -8 && x <= 8 && y >= 0 && y <= 8) printf("S\n"); else printf("N\n"); return 0; }