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