node_ids
sequencelengths
4
1.4k
edge_index
sequencelengths
1
2.22k
text
sequencelengths
4
1.4k
source
stringlengths
14
427k
[ 7, 0, 13, 4, 13, 14, 2, 17, 13, 14, 40, 17, 13, 4, 13, 17, 14, 2, 17, 13, 14, 40, 17, 13, 4, 13, 17, 4, 13, 17, 14, 2, 17, 13, 4, 13, 17, 4, 13, 17, 14, 2, 17, 13, 4, 13, 17, 14, 2, 17, 13, 14, 40, 17, 13, 4, 13, 17, 4, 13, 17, 14, 2, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 72, 2 ], [ 73, 8 ], [ 73, 12 ], [ 73, 19 ], [ 73, 23 ], [ 73, 33 ], [ 73, 43 ], [ 73, 50 ], [ 73, 54 ], [ 73, 64 ], [ 72, 73 ] ]
[ "S = input()\n\nif \"N\" in S:\n if \"S\" not in S:\n print(\"No\")\n elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n else:\n if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")\n\n\nelse:\n if \"S\" in S:\n print(\"No\")\n elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n else:\n if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")", "S = input()", "S", "input()", "input", "if \"N\" in S:\n if \"S\" not in S:\n print(\"No\")\n elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n else:\n if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")\n\n\nelse:\n if \"S\" in S:\n print(\"No\")\n elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n else:\n if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")", "\"N\" in S", "\"N\"", "S", "if \"S\" not in S:\n print(\"No\")\n elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n else:\n if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")", "\"S\" not in S", "\"S\"", "S", "print(\"No\")", "print", "\"No\"", "elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n ", "\"E\" in S", "\"E\"", "S", "if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n ", "\"W\" not in S", "\"W\"", "S", "print(\"No\")", "print", "\"No\"", "print(\"Yes\")", "print", "\"Yes\"", "if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")", "\"W\" in S", "\"W\"", "S", "print(\"No\")", "print", "\"No\"", "print(\"Yes\")", "print", "\"Yes\"", "if \"S\" in S:\n print(\"No\")\n elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n else:\n if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")", "\"S\" in S", "\"S\"", "S", "print(\"No\")", "print", "\"No\"", "elif \"E\" in S:\n if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n ", "\"E\" in S", "\"E\"", "S", "if \"W\" not in S:\n print(\"No\")\n else:\n print(\"Yes\")\n ", "\"W\" not in S", "\"W\"", "S", "print(\"No\")", "print", "\"No\"", "print(\"Yes\")", "print", "\"Yes\"", "if \"W\" in S:\n print(\"No\")\n else:\n print(\"Yes\")", "\"W\" in S", "\"W\"", "S", "print(\"No\")", "print", "\"No\"", "print(\"Yes\")", "print", "\"Yes\"", "S = input()", "input()", "S" ]
S = input() if "N" in S: if "S" not in S: print("No") elif "E" in S: if "W" not in S: print("No") else: print("Yes") else: if "W" in S: print("No") else: print("Yes") else: if "S" in S: print("No") elif "E" in S: if "W" not in S: print("No") else: print("Yes") else: if "W" in S: print("No") else: print("Yes")
[ 7, 15, 0, 13, 4, 13, 14, 2, 2, 2, 2, 17, 13, 2, 17, 13, 2, 40, 17, 13, 40, 17, 13, 2, 2, 2, 17, 13, 2, 17, 13, 2, 40, 17, 13, 40, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 45, 3 ], [ 46, 12 ], [ 46, 15 ], [ 46, 19 ], [ 46, 22 ], [ 46, 27 ], [ 46, 30 ], [ 46, 34 ], [ 46, 37 ], [ 45, 46 ] ]
[ "from collections import Counter\n\nS = input()\nif ((\"N\" in S and \"S\" in S) or (\"N\" not in S and \"S\" not in S)) and ((\"E\" in S and \"W\" in S) or (\"E\" not in S and \"W\" not in S)):\n print(\"Yes\")\nelse:\n print(\"No\")", "from collections import Counter", "S = input()", "S", "input()", "input", "if ((\"N\" in S and \"S\" in S) or (\"N\" not in S and \"S\" not in S)) and ((\"E\" in S and \"W\" in S) or (\"E\" not in S and \"W\" not in S)):\n print(\"Yes\")\nelse:\n print(\"No\")", "((\"N\" in S and \"S\" in S) or (\"N\" not in S and \"S\" not in S)) and ((\"E\" in S and \"W\" in S) or (\"E\" not in S and \"W\" not in S))", "(\"N\" in S and \"S\" in S) or (\"N\" not in S and \"S\" not in S)", "\"N\" in S and \"S\" in S", "\"N\" in S", "\"N\"", "S", "\"S\" in S", "\"S\"", "S", "\"N\" not in S and \"S\" not in S", "\"N\" not in S", "\"N\"", "S", "\"S\" not in S", "\"S\"", "S", "(\"E\" in S and \"W\" in S) or (\"E\" not in S and \"W\" not in S)", "\"E\" in S and \"W\" in S", "\"E\" in S", "\"E\"", "S", "\"W\" in S", "\"W\"", "S", "\"E\" not in S and \"W\" not in S", "\"E\" not in S", "\"E\"", "S", "\"W\" not in S", "\"W\"", "S", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "S = input()", "input()", "S" ]
from collections import Counter S = input() if (("N" in S and "S" in S) or ("N" not in S and "S" not in S)) and (("E" in S and "W" in S) or ("E" not in S and "W" not in S)): print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 0, 13, 2, 39, 17, 17, 28, 13, 4, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 0, 18, 13, 17, 17, 14, 2, 18, 13, 13, 17, 0, 18, 13, 17, 17, 14, 2, 18, 13, 13, 17, 0, 18, 13, 17, 17, 0, 18, 13, 17, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 2, 13 ]
[ [ 79, 2 ], [ 82, 6 ], [ 13, 12 ], [ 80, 17 ], [ 80, 21 ], [ 12, 22 ], [ 28, 25 ], [ 83, 26 ], [ 80, 32 ], [ 12, 33 ], [ 39, 36 ], [ 83, 37 ], [ 80, 43 ], [ 12, 44 ], [ 50, 47 ], [ 83, 48 ], [ 55, 52 ], [ 83, 53 ], [ 83, 60 ], [ 83, 63 ], [ 83, 67 ], [ 83, 70 ], [ 79, 80 ], [ 82, 83 ] ]
[ "s = input()\nflag = [0] * 4\nfor i in range(len(s)):\n if s[i] == \"N\":\n flag[0] = 1\n elif s[i] == \"S\":\n flag[1] = 1\n elif s[i] == \"W\":\n flag[2] = 1\n else:\n flag[3] = 1\nif flag[0] == flag[1] and flag[2] == flag[3]:\n print(\"Yes\")\nelse:\n print(\"No\")", "s = input()", "s", "input()", "input", "flag = [0] * 4", "flag", "[0] * 4", "[0]", "0", "4", "for i in range(len(s)):\n if s[i] == \"N\":\n flag[0] = 1\n elif s[i] == \"S\":\n flag[1] = 1\n elif s[i] == \"W\":\n flag[2] = 1\n else:\n flag[3] = 1", "i", "range(len(s))", "range", "len(s)", "len", "s", "if s[i] == \"N\":\n flag[0] = 1\n elif s[i] == \"S\":\n flag[1] = 1\n elif s[i] == \"W\":\n flag[2] = 1\n else:\n flag[3] = 1", "s[i] == \"N\"", "s[i]", "s", "i", "\"N\"", "flag[0] = 1", "flag[0]", "flag", "0", "1", "elif s[i] == \"S\":\n flag[1] = 1\n ", "s[i] == \"S\"", "s[i]", "s", "i", "\"S\"", "flag[1] = 1", "flag[1]", "flag", "1", "1", "elif s[i] == \"W\":\n flag[2] = 1\n ", "s[i] == \"W\"", "s[i]", "s", "i", "\"W\"", "flag[2] = 1", "flag[2]", "flag", "2", "1", "flag[3] = 1", "flag[3]", "flag", "3", "1", "if flag[0] == flag[1] and flag[2] == flag[3]:\n print(\"Yes\")\nelse:\n print(\"No\")", "flag[0] == flag[1] and flag[2] == flag[3]", "flag[0] == flag[1]", "flag[0]", "flag", "0", "flag[1]", "flag", "1", "flag[2] == flag[3]", "flag[2]", "flag", "2", "flag[3]", "flag", "3", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "s = input()", "input()", "s", "flag = [0] * 4", "[0] * 4", "flag" ]
s = input() flag = [0] * 4 for i in range(len(s)): if s[i] == "N": flag[0] = 1 elif s[i] == "S": flag[1] = 1 elif s[i] == "W": flag[2] = 1 else: flag[3] = 1 if flag[0] == flag[1] and flag[2] == flag[3]: print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 81, 2 ], [ 72, 6 ], [ 82, 9 ], [ 75, 13 ], [ 82, 16 ], [ 78, 20 ], [ 82, 23 ], [ 84, 27 ], [ 82, 30 ], [ 73, 38 ], [ 79, 41 ], [ 73, 45 ], [ 79, 48 ], [ 76, 53 ], [ 85, 56 ], [ 76, 60 ], [ 85, 63 ], [ 72, 73 ], [ 75, 76 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ] ]
[ "S = input()\n\nN_cnt = S.count('N')\nW_cnt = S.count('W')\nS_cnt = S.count('S')\nE_cnt = S.count('E')\n\nif ((N_cnt > 0 and S_cnt > 0) or (N_cnt == 0 and S_cnt == 0)) \\\n\tand ((W_cnt > 0 and E_cnt > 0) or (W_cnt == 0 and E_cnt == 0)):\n\tprint('Yes')\nelse:\n\tprint('No')", "S = input()", "S", "input()", "input", "N_cnt = S.count('N')", "N_cnt", "S.count('N')", "S.count", "S", "count", "'N'", "W_cnt = S.count('W')", "W_cnt", "S.count('W')", "S.count", "S", "count", "'W'", "S_cnt = S.count('S')", "S_cnt", "S.count('S')", "S.count", "S", "count", "'S'", "E_cnt = S.count('E')", "E_cnt", "S.count('E')", "S.count", "S", "count", "'E'", "if ((N_cnt > 0 and S_cnt > 0) or (N_cnt == 0 and S_cnt == 0)) \\\n\tand ((W_cnt > 0 and E_cnt > 0) or (W_cnt == 0 and E_cnt == 0)):\n\tprint('Yes')\nelse:\n\tprint('No')", "((N_cnt > 0 and S_cnt > 0) or (N_cnt == 0 and S_cnt == 0)) \\\n\tand ((W_cnt > 0 and E_cnt > 0) or (W_cnt == 0 and E_cnt == 0))", "(N_cnt > 0 and S_cnt > 0) or (N_cnt == 0 and S_cnt == 0)", "N_cnt > 0 and S_cnt > 0", "N_cnt > 0", "N_cnt", "0", "S_cnt > 0", "S_cnt", "0", "N_cnt == 0 and S_cnt == 0", "N_cnt == 0", "N_cnt", "0", "S_cnt == 0", "S_cnt", "0", "(W_cnt > 0 and E_cnt > 0) or (W_cnt == 0 and E_cnt == 0)", "W_cnt > 0 and E_cnt > 0", "W_cnt > 0", "W_cnt", "0", "E_cnt > 0", "E_cnt", "0", "W_cnt == 0 and E_cnt == 0", "W_cnt == 0", "W_cnt", "0", "E_cnt == 0", "E_cnt", "0", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "N_cnt = S.count('N')", "S.count('N')", "N_cnt", "W_cnt = S.count('W')", "S.count('W')", "W_cnt", "S_cnt = S.count('S')", "S.count('S')", "S_cnt", "S = input()", "input()", "S", "E_cnt = S.count('E')", "S.count('E')", "E_cnt" ]
S = input() N_cnt = S.count('N') W_cnt = S.count('W') S_cnt = S.count('S') E_cnt = S.count('E') if ((N_cnt > 0 and S_cnt > 0) or (N_cnt == 0 and S_cnt == 0)) \ and ((W_cnt > 0 and E_cnt > 0) or (W_cnt == 0 and E_cnt == 0)): print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 14, 2, 2, 4, 13, 13, 17, 2, 4, 13, 13, 17, 14, 2, 2, 4, 13, 13, 17, 2, 4, 13, 13, 17, 14, 2, 2, 13, 39, 17, 17, 2, 13, 39, 17, 17, 14, 2, 13, 39, 17, 17, 17, 17, 4, 13, 13, 10, 4, 13 ]
[ [ 59, 2 ], [ 60, 16 ], [ 60, 21 ], [ 60, 28 ], [ 60, 33 ], [ 60, 38 ], [ 60, 43 ], [ 60, 49 ], [ 59, 60 ] ]
[ "s = sorted(list(set(input())))\n\nif len(s) == 1 or len(s)==3: ans = \"No\"\nelif len(s) == 2 or len(s)==4:\n if s == [\"N\",\"S\"] or s == [\"E\", \"W\"]: ans = \"Yes\"\n elif s == [\"E\", \"N\", \"S\", \"W\"]: ans = \"Yes\"\n else: ans = \"No\"\nprint(ans)", "s = sorted(list(set(input())))", "s", "sorted(list(set(input())))", "sorted", "list(set(input()))", "list", "set(input())", "set", "input()", "input", "if len(s) == 1 or len(s)==3: ans = \"No\"\nelif len(s) == 2 or len(s)==4:\n if s == [\"N\",\"S\"] or s == [\"E\", \"W\"]: ans = \"Yes\"\n elif s == [\"E\", \"N\", \"S\", \"W\"]: ans = \"Yes\"\n else: ans = \"No\"", "len(s) == 1 or len(s)==3", "len(s) == 1", "len(s)", "len", "s", "1", "len(s)==3", "len(s)", "len", "s", "3", "elif len(s) == 2 or len(s)==4:\n if s == [\"N\",\"S\"] or s == [\"E\", \"W\"]: ans = \"Yes\"\n elif s == [\"E\", \"N\", \"S\", \"W\"]: ans = \"Yes\"\n else: ans = \"No\"", "len(s) == 2 or len(s)==4", "len(s) == 2", "len(s)", "len", "s", "2", "len(s)==4", "len(s)", "len", "s", "4", "if s == [\"N\",\"S\"] or s == [\"E\", \"W\"]: ans = \"Yes\"\n elif s == [\"E\", \"N\", \"S\", \"W\"]: ans = \"Yes\"\n else: ans = \"No\"", "s == [\"N\",\"S\"] or s == [\"E\", \"W\"]", "s == [\"N\",\"S\"]", "s", "[\"N\",\"S\"]", "\"N\"", "\"S\"", "s == [\"E\", \"W\"]", "s", "[\"E\", \"W\"]", "\"E\"", "\"W\"", "elif s == [\"E\", \"N\", \"S\", \"W\"]: ans = \"Yes\"\n ", "s == [\"E\", \"N\", \"S\", \"W\"]", "s", "[\"E\", \"N\", \"S\", \"W\"]", "\"E\"", "\"N\"", "\"S\"", "\"W\"", "print(ans)", "print", "ans", "s = sorted(list(set(input())))", "sorted(list(set(input())))", "s" ]
s = sorted(list(set(input()))) if len(s) == 1 or len(s)==3: ans = "No" elif len(s) == 2 or len(s)==4: if s == ["N","S"] or s == ["E", "W"]: ans = "Yes" elif s == ["E", "N", "S", "W"]: ans = "Yes" else: ans = "No" print(ans)
[ 7, 15, 0, 13, 4, 18, 4, 18, 13, 13, 13, 14, 2, 2, 2, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 50, 3 ], [ 51, 18 ], [ 51, 21 ], [ 51, 25 ], [ 51, 28 ], [ 51, 32 ], [ 51, 35 ], [ 51, 39 ], [ 51, 42 ], [ 50, 51 ] ]
[ "from sys import stdin\nS = stdin.readline().rstrip()\nif ('N' in S and 'S' not in S) or ('S' in S and 'N' not in S) or ('W' in S and 'E' not in S)or ('E' in S and 'W' not in S):\n print(\"No\")\nelse:\n print('Yes')", "from sys import stdin", "S = stdin.readline().rstrip()", "S", "stdin.readline().rstrip()", "stdin.readline().rstrip", "stdin.readline()", "stdin.readline", "stdin", "readline", "rstrip", "if ('N' in S and 'S' not in S) or ('S' in S and 'N' not in S) or ('W' in S and 'E' not in S)or ('E' in S and 'W' not in S):\n print(\"No\")\nelse:\n print('Yes')", "('N' in S and 'S' not in S) or ('S' in S and 'N' not in S) or ('W' in S and 'E' not in S)or ('E' in S and 'W' not in S)", "('N' in S and 'S' not in S) or ('S' in S and 'N' not in S) or ('W' in S and 'E' not in S)", "('N' in S and 'S' not in S) or ('S' in S and 'N' not in S)", "'N' in S and 'S' not in S", "'N' in S", "'N'", "S", "'S' not in S", "'S'", "S", "'S' in S and 'N' not in S", "'S' in S", "'S'", "S", "'N' not in S", "'N'", "S", "'W' in S and 'E' not in S", "'W' in S", "'W'", "S", "'E' not in S", "'E'", "S", "'E' in S and 'W' not in S", "'E' in S", "'E'", "S", "'W' not in S", "'W'", "S", "print(\"No\")", "print", "\"No\"", "print('Yes')", "print", "'Yes'", "S = stdin.readline().rstrip()", "stdin.readline().rstrip()", "S" ]
from sys import stdin S = stdin.readline().rstrip() if ('N' in S and 'S' not in S) or ('S' in S and 'N' not in S) or ('W' in S and 'E' not in S)or ('E' in S and 'W' not in S): print("No") else: print('Yes')
[ 7, 0, 13, 4, 13, 0, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 0, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 0, 13, 17, 14, 13, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 48, 2 ], [ 45, 6 ], [ 49, 12 ], [ 49, 15 ], [ 42, 17 ], [ 49, 23 ], [ 49, 26 ], [ 39, 28 ], [ 39, 40 ], [ 42, 43 ], [ 45, 46 ], [ 48, 49 ] ]
[ "S = input()\nans = True\nif ('S' in S) ^ ('N' in S):\n ans = False\nif ('W' in S) ^ ('E' in S):\n ans = False\nif ans:\n print('Yes')\nelse:\n print('No')", "S = input()", "S", "input()", "input", "ans = True", "ans", "True", "if ('S' in S) ^ ('N' in S):\n ans = False", "('S' in S) ^ ('N' in S)", "'S' in S", "'S'", "S", "'N' in S", "'N'", "S", "ans = False", "ans", "False", "if ('W' in S) ^ ('E' in S):\n ans = False", "('W' in S) ^ ('E' in S)", "'W' in S", "'W'", "S", "'E' in S", "'E'", "S", "ans = False", "ans", "False", "if ans:\n print('Yes')\nelse:\n print('No')", "ans", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "ans = False", "False", "ans", "ans = False", "False", "ans", "ans = True", "True", "ans", "S = input()", "input()", "S" ]
S = input() ans = True if ('S' in S) ^ ('N' in S): ans = False if ('W' in S) ^ ('E' in S): ans = False if ans: print('Yes') else: print('No')
[ 7, 12, 13, 29, 4, 13, 4, 13, 12, 13, 29, 4, 13, 13, 4, 18, 4, 13, 13, 12, 13, 29, 4, 13, 4, 13, 12, 13, 29, 4, 13, 4, 13, 12, 13, 29, 4, 13, 4, 13, 13, 0, 13, 4, 13, 0, 13, 17, 13, 17, 13, 17, 13, 17, 28, 13, 4, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 14, 2, 2, 13, 13, 40, 2, 13, 13, 4, 13, 17, 14, 2, 40, 2, 13, 13, 2, 13, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 12, 13, 10, 17, 13, 10, 12, 13, 10, 17, 13, 10, 12, 13, 10, 17, 13, 10, 17, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 130, 42 ], [ 158, 44 ], [ 154, 46 ], [ 160, 48 ], [ 148, 50 ], [ 133, 52 ], [ 56, 55 ], [ 131, 60 ], [ 158, 60 ], [ 131, 64 ], [ 158, 64 ], [ 55, 65 ], [ 163, 68 ], [ 131, 73 ], [ 158, 73 ], [ 55, 74 ], [ 139, 77 ], [ 131, 82 ], [ 158, 82 ], [ 55, 83 ], [ 142, 86 ], [ 136, 89 ], [ 164, 94 ], [ 155, 94 ], [ 140, 95 ], [ 161, 95 ], [ 143, 97 ], [ 149, 97 ], [ 137, 98 ], [ 134, 98 ], [ 164, 105 ], [ 155, 105 ], [ 140, 106 ], [ 161, 106 ], [ 143, 109 ], [ 149, 109 ], [ 137, 110 ], [ 134, 110 ], [ 164, 118 ], [ 155, 118 ], [ 140, 119 ], [ 161, 119 ], [ 143, 121 ], [ 149, 121 ], [ 137, 122 ], [ 134, 122 ], [ 130, 131 ], [ 133, 134 ], [ 136, 137 ], [ 139, 140 ], [ 142, 143 ], [ 148, 149 ], [ 154, 155 ], [ 160, 161 ], [ 163, 164 ] ]
[ "def i():\n\treturn int(input())\ndef i2():\n\treturn map(int,input().split())\ndef s():\n\treturn str(input())\ndef l():\n\treturn list(input())\ndef intl():\n\treturn list(int(k) for k in input().split())\n\ns = s()\n\ncn,cs,ce,cw = 0,0,0,0\nfor i in range(len(s)):\n\tif s[i] == \"N\":\n\t\tcn = 1\n\telif s[i] == \"S\":\n\t\tcs = 1\n\telif s[i] == \"E\":\n\t\tce = 1\n\telse:\n\t\tcw = 1\n\nif (cn and cs) and (ce and cw):\n\tprint(\"Yes\")\nelif (cn and cs) and not(ce or cw):\n\tprint(\"Yes\")\nelif not(cn or cs) and (ce and cw):\n\tprint(\"Yes\")\nelse:\n\tprint(\"No\")", "def i():\n\treturn int(input())", "i", "return int(input())", "int(input())", "int", "input()", "input", "def i2():\n\treturn map(int,input().split())", "i2", "return map(int,input().split())", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "def s():\n\treturn str(input())", "s", "return str(input())", "str(input())", "str", "input()", "input", "def l():\n\treturn list(input())", "l", "return list(input())", "list(input())", "list", "input()", "input", "def intl():\n\treturn list(int(k) for k in input().split())", "intl", "return list(int(k) for k in input().split())", "list(int(k) for k in input().split())", "list", "int(k)", "int", "k", "s = s()", "s", "s()", "s", "cn,cs,ce,cw = 0,0,0,0", "cn", "0", "cs", "0", "ce", "0", "cw", "0", "for i in range(len(s)):\n\tif s[i] == \"N\":\n\t\tcn = 1\n\telif s[i] == \"S\":\n\t\tcs = 1\n\telif s[i] == \"E\":\n\t\tce = 1\n\telse:\n\t\tcw = 1", "i", "range(len(s))", "range", "len(s)", "len", "s", "if s[i] == \"N\":\n\t\tcn = 1\n\telif s[i] == \"S\":\n\t\tcs = 1\n\telif s[i] == \"E\":\n\t\tce = 1\n\telse:\n\t\tcw = 1", "s[i] == \"N\"", "s[i]", "s", "i", "\"N\"", "cn = 1", "cn", "1", "elif s[i] == \"S\":\n\t\tcs = 1\n\t", "s[i] == \"S\"", "s[i]", "s", "i", "\"S\"", "cs = 1", "cs", "1", "elif s[i] == \"E\":\n\t\tce = 1\n\t", "s[i] == \"E\"", "s[i]", "s", "i", "\"E\"", "ce = 1", "ce", "1", "cw = 1", "cw", "1", "if (cn and cs) and (ce and cw):\n\tprint(\"Yes\")\nelif (cn and cs) and not(ce or cw):\n\tprint(\"Yes\")\nelif not(cn or cs) and (ce and cw):\n\tprint(\"Yes\")\nelse:\n\tprint(\"No\")", "(cn and cs) and (ce and cw)", "cn and cs", "cn", "cs", "ce and cw", "ce", "cw", "print(\"Yes\")", "print", "\"Yes\"", "elif (cn and cs) and not(ce or cw):\n\tprint(\"Yes\")", "(cn and cs) and not(ce or cw)", "cn and cs", "cn", "cs", "not(ce or cw)", "ce or cw", "ce", "cw", "print(\"Yes\")", "print", "\"Yes\"", "elif not(cn or cs) and (ce and cw):\n\tprint(\"Yes\")", "not(cn or cs) and (ce and cw)", "not(cn or cs)", "cn or cs", "cn", "cs", "ce and cw", "ce", "cw", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "s = s()", "s()", "s", "cw = 0,0,0,0", "0", "cw", "cw = 1", "1", "cw", "cs = 1", "1", "cs", "ce = 1", "1", "ce", "def i():\n\treturn int(input())", "def i():\n\treturn int(input())", "i", "ce,cw = 0,0,0,0", "0", "ce", "def intl():\n\treturn list(int(k) for k in input().split())", "def intl():\n\treturn list(int(k) for k in input().split())", "intl", "cn,cs,ce,cw = 0,0,0,0", "0", "cn", "def s():\n\treturn str(input())", "def s():\n\treturn str(input())", "s", "cs,ce,cw = 0,0,0,0", "0", "cs", "cn = 1", "1", "cn", "def l():\n\treturn list(input())", "def l():\n\treturn list(input())", "l", "def i2():\n\treturn map(int,input().split())", "def i2():\n\treturn map(int,input().split())", "i2" ]
def i(): return int(input()) def i2(): return map(int,input().split()) def s(): return str(input()) def l(): return list(input()) def intl(): return list(int(k) for k in input().split()) s = s() cn,cs,ce,cw = 0,0,0,0 for i in range(len(s)): if s[i] == "N": cn = 1 elif s[i] == "S": cs = 1 elif s[i] == "E": ce = 1 else: cw = 1 if (cn and cs) and (ce and cw): print("Yes") elif (cn and cs) and not(ce or cw): print("Yes") elif not(cn or cs) and (ce and cw): print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 4, 13, 14, 2, 2, 17, 13, 2, 17, 13, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 14, 2, 40, 17, 13, 40, 17, 13, 4, 13, 17, 4, 13, 17, 14, 2, 40, 17, 13, 40, 17, 13, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 14, 2, 40, 17, 13, 40, 17, 13, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 77, 2 ], [ 78, 11 ], [ 78, 14 ], [ 78, 19 ], [ 78, 22 ], [ 78, 30 ], [ 78, 33 ], [ 78, 44 ], [ 78, 47 ], [ 78, 52 ], [ 78, 55 ], [ 78, 63 ], [ 78, 66 ], [ 77, 78 ] ]
[ "x = list(input())\nif 'N' in x and 'S' in x:\n if 'E' in x and 'W' in x:\n print('Yes')\n elif 'E' not in x and 'W' not in x:\n print('Yes')\n else:\n print('No')\nelif 'N' not in x and 'S' not in x:\n if 'E' in x and 'W' in x:\n print('Yes')\n elif 'E' not in x and 'W' not in x:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "x = list(input())", "x", "list(input())", "list", "input()", "input", "if 'N' in x and 'S' in x:\n if 'E' in x and 'W' in x:\n print('Yes')\n elif 'E' not in x and 'W' not in x:\n print('Yes')\n else:\n print('No')\nelif 'N' not in x and 'S' not in x:\n if 'E' in x and 'W' in x:\n print('Yes')\n elif 'E' not in x and 'W' not in x:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "'N' in x and 'S' in x", "'N' in x", "'N'", "x", "'S' in x", "'S'", "x", "if 'E' in x and 'W' in x:\n print('Yes')\n elif 'E' not in x and 'W' not in x:\n print('Yes')\n else:\n print('No')", "'E' in x and 'W' in x", "'E' in x", "'E'", "x", "'W' in x", "'W'", "x", "print('Yes')", "print", "'Yes'", "elif 'E' not in x and 'W' not in x:\n print('Yes')\n ", "'E' not in x and 'W' not in x", "'E' not in x", "'E'", "x", "'W' not in x", "'W'", "x", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "elif 'N' not in x and 'S' not in x:\n if 'E' in x and 'W' in x:\n print('Yes')\n elif 'E' not in x and 'W' not in x:\n print('Yes')\n else:\n print('No')", "'N' not in x and 'S' not in x", "'N' not in x", "'N'", "x", "'S' not in x", "'S'", "x", "if 'E' in x and 'W' in x:\n print('Yes')\n elif 'E' not in x and 'W' not in x:\n print('Yes')\n else:\n print('No')", "'E' in x and 'W' in x", "'E' in x", "'E'", "x", "'W' in x", "'W'", "x", "print('Yes')", "print", "'Yes'", "elif 'E' not in x and 'W' not in x:\n print('Yes')\n ", "'E' not in x and 'W' not in x", "'E' not in x", "'E'", "x", "'W' not in x", "'W'", "x", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "x = list(input())", "list(input())", "x" ]
x = list(input()) if 'N' in x and 'S' in x: if 'E' in x and 'W' in x: print('Yes') elif 'E' not in x and 'W' not in x: print('Yes') else: print('No') elif 'N' not in x and 'S' not in x: if 'E' in x and 'W' in x: print('Yes') elif 'E' not in x and 'W' not in x: print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 39, 17, 17, 17, 17, 28, 13, 4, 13, 14, 2, 13, 17, 0, 18, 13, 17, 17, 14, 2, 13, 17, 0, 18, 13, 17, 17, 14, 2, 13, 17, 0, 18, 13, 17, 17, 14, 2, 13, 17, 0, 18, 13, 17, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 10, 39, 13 ]
[ [ 133, 2 ], [ 10, 9 ], [ 9, 14 ], [ 20, 17 ], [ 134, 18 ], [ 9, 23 ], [ 29, 26 ], [ 134, 27 ], [ 9, 32 ], [ 38, 35 ], [ 134, 36 ], [ 9, 41 ], [ 47, 44 ], [ 134, 45 ], [ 134, 53 ], [ 134, 58 ], [ 134, 64 ], [ 134, 69 ], [ 134, 80 ], [ 134, 85 ], [ 134, 91 ], [ 134, 96 ], [ 134, 107 ], [ 134, 112 ], [ 134, 118 ], [ 134, 123 ], [ 133, 134 ] ]
[ "Count = [0,0,0,0]\nfor j in input():\n if j == 'N':\n Count[0] +=1\n elif j == 'S':\n Count[1] +=1\n elif j == 'W':\n Count[2] +=1\n elif j == 'E':\n Count[3] +=1\n\nif (Count[0] > 0 and Count[1] > 0) and (Count[2] > 0 and Count[3] > 0):\n print(\"Yes\")\nelif (Count[0] == 0 and Count[1] == 0) and (Count[2] > 0 and Count[3] > 0):\n print(\"Yes\")\nelif (Count[0] > 0 and Count[1] > 0) and (Count[2] == 0 and Count[3] == 0):\n print(\"Yes\")\nelse:\n print(\"No\")", "Count = [0,0,0,0]", "Count", "[0,0,0,0]", "0", "0", "0", "0", "for j in input():\n if j == 'N':\n Count[0] +=1\n elif j == 'S':\n Count[1] +=1\n elif j == 'W':\n Count[2] +=1\n elif j == 'E':\n Count[3] +=1", "j", "input()", "input", "if j == 'N':\n Count[0] +=1\n elif j == 'S':\n Count[1] +=1\n elif j == 'W':\n Count[2] +=1\n elif j == 'E':\n Count[3] +=1", "j == 'N'", "j", "'N'", "Count[0] +=1", "Count[0]", "Count", "0", "1", "elif j == 'S':\n Count[1] +=1\n ", "j == 'S'", "j", "'S'", "Count[1] +=1", "Count[1]", "Count", "1", "1", "elif j == 'W':\n Count[2] +=1\n ", "j == 'W'", "j", "'W'", "Count[2] +=1", "Count[2]", "Count", "2", "1", "elif j == 'E':\n Count[3] +=1", "j == 'E'", "j", "'E'", "Count[3] +=1", "Count[3]", "Count", "3", "1", "if (Count[0] > 0 and Count[1] > 0) and (Count[2] > 0 and Count[3] > 0):\n print(\"Yes\")\nelif (Count[0] == 0 and Count[1] == 0) and (Count[2] > 0 and Count[3] > 0):\n print(\"Yes\")\nelif (Count[0] > 0 and Count[1] > 0) and (Count[2] == 0 and Count[3] == 0):\n print(\"Yes\")\nelse:\n print(\"No\")", "(Count[0] > 0 and Count[1] > 0) and (Count[2] > 0 and Count[3] > 0)", "Count[0] > 0 and Count[1] > 0", "Count[0] > 0", "Count[0]", "Count", "0", "0", "Count[1] > 0", "Count[1]", "Count", "1", "0", "Count[2] > 0 and Count[3] > 0", "Count[2] > 0", "Count[2]", "Count", "2", "0", "Count[3] > 0", "Count[3]", "Count", "3", "0", "print(\"Yes\")", "print", "\"Yes\"", "elif (Count[0] == 0 and Count[1] == 0) and (Count[2] > 0 and Count[3] > 0):\n print(\"Yes\")", "(Count[0] == 0 and Count[1] == 0) and (Count[2] > 0 and Count[3] > 0)", "Count[0] == 0 and Count[1] == 0", "Count[0] == 0", "Count[0]", "Count", "0", "0", "Count[1] == 0", "Count[1]", "Count", "1", "0", "Count[2] > 0 and Count[3] > 0", "Count[2] > 0", "Count[2]", "Count", "2", "0", "Count[3] > 0", "Count[3]", "Count", "3", "0", "print(\"Yes\")", "print", "\"Yes\"", "elif (Count[0] > 0 and Count[1] > 0) and (Count[2] == 0 and Count[3] == 0):\n print(\"Yes\")", "(Count[0] > 0 and Count[1] > 0) and (Count[2] == 0 and Count[3] == 0)", "Count[0] > 0 and Count[1] > 0", "Count[0] > 0", "Count[0]", "Count", "0", "0", "Count[1] > 0", "Count[1]", "Count", "1", "0", "Count[2] == 0 and Count[3] == 0", "Count[2] == 0", "Count[2]", "Count", "2", "0", "Count[3] == 0", "Count[3]", "Count", "3", "0", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "Count = [0,0,0,0]", "[0,0,0,0]", "Count" ]
Count = [0,0,0,0] for j in input(): if j == 'N': Count[0] +=1 elif j == 'S': Count[1] +=1 elif j == 'W': Count[2] +=1 elif j == 'E': Count[3] +=1 if (Count[0] > 0 and Count[1] > 0) and (Count[2] > 0 and Count[3] > 0): print("Yes") elif (Count[0] == 0 and Count[1] == 0) and (Count[2] > 0 and Count[3] > 0): print("Yes") elif (Count[0] > 0 and Count[1] > 0) and (Count[2] == 0 and Count[3] == 0): print("Yes") else: print("No")
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 0, 13, 4, 18, 4, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 40, 2, 13, 13, 17, 4, 13, 17, 4, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 40, 2, 13, 13, 17, 4, 13, 17, 4, 13, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 18, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 94, 4 ], [ 100, 11 ], [ 95, 15 ], [ 91, 19 ], [ 101, 22 ], [ 103, 26 ], [ 101, 29 ], [ 88, 33 ], [ 101, 36 ], [ 97, 40 ], [ 101, 43 ], [ 92, 50 ], [ 104, 53 ], [ 92, 57 ], [ 104, 58 ], [ 89, 69 ], [ 98, 72 ], [ 89, 76 ], [ 98, 77 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ] ]
[ "import sys\ninput = sys.stdin.readline\n\nA = input().rstrip('\\n')\n\nN = A.count(\"N\")\nS = A.count(\"S\")\nW = A.count(\"W\")\nE = A.count(\"E\")\n\nif (N == 0 or S == 0) and N + S != 0:\n print(\"No\")\n exit()\nif (W == 0 or E == 0) and W + E != 0:\n print(\"No\")\n exit()\nprint(\"Yes\")", "import sys", "sys", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "A = input().rstrip('\\n')", "A", "input().rstrip('\\n')", "().rstrip", "()", "input", "rstrip", "'\\n'", "N = A.count(\"N\")", "N", "A.count(\"N\")", "A.count", "A", "count", "\"N\"", "S = A.count(\"S\")", "S", "A.count(\"S\")", "A.count", "A", "count", "\"S\"", "W = A.count(\"W\")", "W", "A.count(\"W\")", "A.count", "A", "count", "\"W\"", "E = A.count(\"E\")", "E", "A.count(\"E\")", "A.count", "A", "count", "\"E\"", "if (N == 0 or S == 0) and N + S != 0:\n print(\"No\")\n exit()", "(N == 0 or S == 0) and N + S != 0", "N == 0 or S == 0", "N == 0", "N", "0", "S == 0", "S", "0", "N + S != 0", "N + S", "N", "S", "0", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "if (W == 0 or E == 0) and W + E != 0:\n print(\"No\")\n exit()", "(W == 0 or E == 0) and W + E != 0", "W == 0 or E == 0", "W == 0", "W", "0", "E == 0", "E", "0", "W + E != 0", "W + E", "W", "E", "0", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "print(\"Yes\")", "print", "\"Yes\"", "W = A.count(\"W\")", "A.count(\"W\")", "W", "N = A.count(\"N\")", "A.count(\"N\")", "N", "input = sys.stdin.readline", "sys.stdin.readline", "input", "E = A.count(\"E\")", "A.count(\"E\")", "E", "A = input().rstrip('\\n')", "input().rstrip('\\n')", "A", "S = A.count(\"S\")", "A.count(\"S\")", "S" ]
import sys input = sys.stdin.readline A = input().rstrip('\n') N = A.count("N") S = A.count("S") W = A.count("W") E = A.count("E") if (N == 0 or S == 0) and N + S != 0: print("No") exit() if (W == 0 or E == 0) and W + E != 0: print("No") exit() print("Yes")
[ 7, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 13, 13, 28, 13, 13, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 0, 13, 2, 2, 2, 2, 13, 13, 17, 2, 2, 13, 17, 2, 13, 17, 2, 2, 2, 13, 13, 17, 2, 2, 13, 17, 2, 13, 17, 0, 13, 8, 13, 17, 17, 4, 13, 13, 10, 2, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 8, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 98, 2 ], [ 113, 6 ], [ 113, 9 ], [ 113, 11 ], [ 113, 12 ], [ 15, 14 ], [ 99, 14 ], [ 14, 18 ], [ 95, 21 ], [ 14, 25 ], [ 110, 28 ], [ 14, 32 ], [ 104, 35 ], [ 14, 39 ], [ 92, 42 ], [ 83, 45 ], [ 96, 50 ], [ 90, 50 ], [ 105, 51 ], [ 114, 51 ], [ 96, 55 ], [ 90, 55 ], [ 105, 58 ], [ 114, 58 ], [ 111, 63 ], [ 108, 63 ], [ 93, 64 ], [ 87, 64 ], [ 111, 68 ], [ 108, 68 ], [ 93, 71 ], [ 87, 71 ], [ 101, 74 ], [ 84, 76 ], [ 102, 81 ], [ 83, 84 ], [ 113, 87 ], [ 113, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 113, 108 ], [ 110, 111 ], [ 113, 114 ] ]
[ "S=input()\nn=w=s=e=0\nfor c in S:\n if c=='N':\n n+=1\n elif c=='W':\n w+=1\n elif c=='S':\n s+=1\n elif c=='E':\n e+=1\nok=(n==s==0 or (n>0 and s>0)) and (w==e==0 or (w>0 and e>0))\nans=\"Yes\" if ok else \"No\"\nprint(ans)", "S=input()", "S", "input()", "input", "n=w=s=e=0", "n", "0", "=w=s=e=0", "w", "0", "s", "e", "for c in S:\n if c=='N':\n n+=1\n elif c=='W':\n w+=1\n elif c=='S':\n s+=1\n elif c=='E':\n e+=1", "c", "S", "if c=='N':\n n+=1\n elif c=='W':\n w+=1\n elif c=='S':\n s+=1\n elif c=='E':\n e+=1", "c=='N'", "c", "'N'", "n+=1", "n", "1", "elif c=='W':\n w+=1\n ", "c=='W'", "c", "'W'", "w+=1", "w", "1", "elif c=='S':\n s+=1\n ", "c=='S'", "c", "'S'", "s+=1", "s", "1", "elif c=='E':\n e+=1", "c=='E'", "c", "'E'", "e+=1", "e", "1", "ok=(n==s==0 or (n>0 and s>0)) and (w==e==0 or (w>0 and e>0))", "ok", "(n==s==0 or (n>0 and s>0)) and (w==e==0 or (w>0 and e>0))", "n==s==0 or (n>0 and s>0)", "n==s==0", "n==s", "n", "s", "0", "n>0 and s>0", "n>0", "n", "0", "s>0", "s", "0", "w==e==0 or (w>0 and e>0)", "w==e==0", "w==e", "w", "e", "0", "w>0 and e>0", "w>0", "w", "0", "e>0", "e", "0", "ans=\"Yes\" if ok else \"No\"", "ans", "\"Yes\" if ok else \"No\"", "ok", "\"Yes\"", "\"No\"", "print(ans)", "print", "ans", "ok=(n==s==0 or (n>0 and s>0)) and (w==e==0 or (w>0 and e>0))", "(n==s==0 or (n>0 and s>0)) and (w==e==0 or (w>0 and e>0))", "ok", "e=0", "0", "e", "n=w=s=e=0", "0", "n", "e+=1", "1", "e", "n+=1", "1", "n", "S=input()", "input()", "S", "ans=\"Yes\" if ok else \"No\"", "\"Yes\" if ok else \"No\"", "ans", "s+=1", "1", "s", "w=s=e=0", "0", "w", "w+=1", "1", "w", "s=e=0", "0", "s" ]
S=input() n=w=s=e=0 for c in S: if c=='N': n+=1 elif c=='W': w+=1 elif c=='S': s+=1 elif c=='E': e+=1 ok=(n==s==0 or (n>0 and s>0)) and (w==e==0 or (w>0 and e>0)) ans="Yes" if ok else "No" print(ans)
[ 7, 15, 13, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 4, 18, 13, 13, 13, 0, 13, 4, 13, 4, 18, 13, 13, 4, 13, 8, 2, 2, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 17, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 7, 6 ], [ 13, 12 ], [ 6, 17 ], [ 20, 19 ], [ 12, 24 ], [ 19, 35 ], [ 19, 42 ], [ 19, 50 ], [ 19, 57 ], [ 19, 66 ], [ 19, 73 ], [ 19, 81 ], [ 19, 88 ], [ 102, 99 ] ]
[ "import collections\n\n\ndef main():\n s = list(input())\n c = collections.Counter(s)\n keys = list(c.keys())\n print(\"Yes\" if ((keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)) and (\n (keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1)) else \"No\")\n\n\nif __name__ == '__main__':\n main()", "import collections", "collections", "def main():\n s = list(input())\n c = collections.Counter(s)\n keys = list(c.keys())\n print(\"Yes\" if ((keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)) and (\n (keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1)) else \"No\")", "main", "s = list(input())", "s", "list(input())", "list", "input()", "input", "c = collections.Counter(s)", "c", "collections.Counter(s)", "collections.Counter", "collections", "Counter", "s", "keys = list(c.keys())", "keys", "list(c.keys())", "list", "c.keys()", "c.keys", "c", "keys", "print(\"Yes\" if ((keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)) and (\n (keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1)) else \"No\")", "print", "\"Yes\" if ((keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)) and (\n (keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1)) else \"No\"", "((keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)) and (\n (keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1))", "(keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)", "keys.count(\"S\") == 0 and keys.count(\"N\") == 0", "keys.count(\"S\") == 0", "keys.count(\"S\")", "keys.count", "keys", "count", "\"S\"", "0", "keys.count(\"N\") == 0", "keys.count(\"N\")", "keys.count", "keys", "count", "\"N\"", "0", "keys.count(\"S\") == 1 and keys.count(\"N\") == 1", "keys.count(\"S\") == 1", "keys.count(\"S\")", "keys.count", "keys", "count", "\"S\"", "1", "keys.count(\"N\") == 1", "keys.count(\"N\")", "keys.count", "keys", "count", "\"N\"", "1", "(keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1)", "keys.count(\"E\") == 0 and keys.count(\"W\") == 0", "keys.count(\"E\") == 0", "keys.count(\"E\")", "keys.count", "keys", "count", "\"E\"", "0", "keys.count(\"W\") == 0", "keys.count(\"W\")", "keys.count", "keys", "count", "\"W\"", "0", "keys.count(\"E\") == 1 and keys.count(\"W\") == 1", "keys.count(\"E\") == 1", "keys.count(\"E\")", "keys.count", "keys", "count", "\"E\"", "1", "keys.count(\"W\") == 1", "keys.count(\"W\")", "keys.count", "keys", "count", "\"W\"", "1", "\"Yes\"", "\"No\"", "if __name__ == '__main__':\n main()", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "def main():\n s = list(input())\n c = collections.Counter(s)\n keys = list(c.keys())\n print(\"Yes\" if ((keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)) and (\n (keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1)) else \"No\")", "def main():\n s = list(input())\n c = collections.Counter(s)\n keys = list(c.keys())\n print(\"Yes\" if ((keys.count(\"S\") == 0 and keys.count(\"N\") == 0) or (keys.count(\"S\") == 1 and keys.count(\"N\") == 1)) and (\n (keys.count(\"E\") == 0 and keys.count(\"W\") == 0) or (keys.count(\"E\") == 1 and keys.count(\"W\") == 1)) else \"No\")", "main" ]
import collections def main(): s = list(input()) c = collections.Counter(s) keys = list(c.keys()) print("Yes" if ((keys.count("S") == 0 and keys.count("N") == 0) or (keys.count("S") == 1 and keys.count("N") == 1)) and ( (keys.count("E") == 0 and keys.count("W") == 0) or (keys.count("E") == 1 and keys.count("W") == 1)) else "No") if __name__ == '__main__': main()
[ 7, 15, 0, 13, 4, 13, 0, 13, 4, 13, 12, 17, 28, 13, 13, 0, 18, 13, 13, 17, 14, 2, 18, 13, 17, 17, 14, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 14, 2, 18, 13, 17, 17, 14, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 14, 2, 18, 13, 17, 17, 14, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 14, 2, 18, 13, 17, 17, 14, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 4, 13, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 92, 3 ], [ 95, 7 ], [ 14, 13 ], [ 93, 13 ], [ 19, 16 ], [ 96, 17 ], [ 13, 18 ], [ 96, 23 ], [ 96, 29 ], [ 96, 40 ], [ 96, 46 ], [ 96, 57 ], [ 96, 63 ], [ 96, 74 ], [ 96, 80 ], [ 92, 93 ], [ 95, 96 ] ]
[ "from collections import defaultdict\ns = input()\nd = defaultdict(lambda: 0)\nfor c in s:\n d[c] += 1\n\nif d[\"N\"] > 0:\n if d[\"S\"] == 0:\n print(\"No\")\n exit()\nif d[\"S\"] > 0:\n if d[\"N\"] == 0:\n print(\"No\")\n exit()\nif d[\"W\"] > 0:\n if d[\"E\"] == 0:\n print(\"No\")\n exit()\nif d[\"E\"] > 0:\n if d[\"W\"] == 0:\n print(\"No\")\n exit()\n\nprint(\"Yes\")", "from collections import defaultdict", "s = input()", "s", "input()", "input", "d = defaultdict(lambda: 0)", "d", "defaultdict(lambda: 0)", "defaultdict", "lambda: 0", "0", "for c in s:\n d[c] += 1", "c", "s", "d[c] += 1", "d[c]", "d", "c", "1", "if d[\"N\"] > 0:\n if d[\"S\"] == 0:\n print(\"No\")\n exit()", "d[\"N\"] > 0", "d[\"N\"]", "d", "\"N\"", "0", "if d[\"S\"] == 0:\n print(\"No\")\n exit()", "d[\"S\"] == 0", "d[\"S\"]", "d", "\"S\"", "0", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "if d[\"S\"] > 0:\n if d[\"N\"] == 0:\n print(\"No\")\n exit()", "d[\"S\"] > 0", "d[\"S\"]", "d", "\"S\"", "0", "if d[\"N\"] == 0:\n print(\"No\")\n exit()", "d[\"N\"] == 0", "d[\"N\"]", "d", "\"N\"", "0", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "if d[\"W\"] > 0:\n if d[\"E\"] == 0:\n print(\"No\")\n exit()", "d[\"W\"] > 0", "d[\"W\"]", "d", "\"W\"", "0", "if d[\"E\"] == 0:\n print(\"No\")\n exit()", "d[\"E\"] == 0", "d[\"E\"]", "d", "\"E\"", "0", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "if d[\"E\"] > 0:\n if d[\"W\"] == 0:\n print(\"No\")\n exit()", "d[\"E\"] > 0", "d[\"E\"]", "d", "\"E\"", "0", "if d[\"W\"] == 0:\n print(\"No\")\n exit()", "d[\"W\"] == 0", "d[\"W\"]", "d", "\"W\"", "0", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "print(\"Yes\")", "print", "\"Yes\"", "s = input()", "input()", "s", "d = defaultdict(lambda: 0)", "defaultdict(lambda: 0)", "d" ]
from collections import defaultdict s = input() d = defaultdict(lambda: 0) for c in s: d[c] += 1 if d["N"] > 0: if d["S"] == 0: print("No") exit() if d["S"] > 0: if d["N"] == 0: print("No") exit() if d["W"] > 0: if d["E"] == 0: print("No") exit() if d["E"] > 0: if d["W"] == 0: print("No") exit() print("Yes")
[ 7, 0, 13, 4, 13, 4, 13, 8, 2, 2, 2, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 17, 17, 10, 4, 13 ]
[ [ 42, 2 ], [ 43, 14 ], [ 43, 17 ], [ 43, 21 ], [ 43, 24 ], [ 43, 28 ], [ 43, 31 ], [ 43, 35 ], [ 43, 38 ], [ 42, 43 ] ]
[ "s=input()\nprint('No' if 'N' in s and 'S' not in s or 'S' in s and 'N' not in s or 'W' in s and 'E' not in s or 'E' in s and 'W' not in s else 'Yes')", "s=input()", "s", "input()", "input", "print('No' if 'N' in s and 'S' not in s or 'S' in s and 'N' not in s or 'W' in s and 'E' not in s or 'E' in s and 'W' not in s else 'Yes')", "print", "'No' if 'N' in s and 'S' not in s or 'S' in s and 'N' not in s or 'W' in s and 'E' not in s or 'E' in s and 'W' not in s else 'Yes'", "'N' in s and 'S' not in s or 'S' in s and 'N' not in s or 'W' in s and 'E' not in s or 'E' in s and 'W' not in s", "'N' in s and 'S' not in s or 'S' in s and 'N' not in s or 'W' in s and 'E' not in s", "'N' in s and 'S' not in s or 'S' in s and 'N' not in s", "'N' in s and 'S' not in s", "'N' in s", "'N'", "s", "'S' not in s", "'S'", "s", "'S' in s and 'N' not in s", "'S' in s", "'S'", "s", "'N' not in s", "'N'", "s", "'W' in s and 'E' not in s", "'W' in s", "'W'", "s", "'E' not in s", "'E'", "s", "'E' in s and 'W' not in s", "'E' in s", "'E'", "s", "'W' not in s", "'W'", "s", "'No'", "'Yes'", "s=input()", "input()", "s" ]
s=input() print('No' if 'N' in s and 'S' not in s or 'S' in s and 'N' not in s or 'W' in s and 'E' not in s or 'E' in s and 'W' not in s else 'Yes')
[ 7, 15, 13, 12, 13, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 0, 13, 17, 4, 13, 13, 4, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 9, 8 ], [ 38, 12 ], [ 15, 14 ], [ 8, 20 ], [ 8, 23 ], [ 8, 26 ], [ 30, 29 ], [ 29, 33 ], [ 14, 33 ], [ 41, 35 ] ]
[ "import sys\ndef input(): return sys.stdin.readline().strip()\n\ndef resolve():\n s=set(input())\n ans='No'\n if s=={'N','S','W','E'} or s=={'N','S'} or s=={'W','E'}:\n ans='Yes'\n print(ans)\nresolve()", "import sys", "sys", "def input(): return sys.stdin.readline().strip()", "input", "def resolve():\n s=set(input())\n ans='No'\n if s=={'N','S','W','E'} or s=={'N','S'} or s=={'W','E'}:\n ans='Yes'\n print(ans)", "resolve", "s=set(input())", "s", "set(input())", "set", "input()", "input", "ans='No'", "ans", "'No'", "if s=={'N','S','W','E'} or s=={'N','S'} or s=={'W','E'}:\n ans='Yes'\n ", "s=={'N','S','W','E'} or s=={'N','S'} or s=={'W','E'}", "s=={'N','S','W','E'} or s=={'N','S'}", "s=={'N','S','W','E'}", "s", "{'N','S','W','E'}", "s=={'N','S'}", "s", "{'N','S'}", "s=={'W','E'}", "s", "{'W','E'}", "ans='Yes'", "ans", "'Yes'", "print(ans)", "print", "ans", "resolve()", "resolve", "def input(): return sys.stdin.readline().strip()", "def input(): return sys.stdin.readline().strip()", "input", "def resolve():\n s=set(input())\n ans='No'\n if s=={'N','S','W','E'} or s=={'N','S'} or s=={'W','E'}:\n ans='Yes'\n print(ans)", "def resolve():\n s=set(input())\n ans='No'\n if s=={'N','S','W','E'} or s=={'N','S'} or s=={'W','E'}:\n ans='Yes'\n print(ans)", "resolve" ]
import sys def input(): return sys.stdin.readline().strip() def resolve(): s=set(input()) ans='No' if s=={'N','S','W','E'} or s=={'N','S'} or s=={'W','E'}: ans='Yes' print(ans) resolve()
[ 7, 0, 13, 4, 13, 0, 13, 17, 14, 2, 4, 18, 13, 13, 17, 40, 4, 18, 13, 13, 17, 0, 13, 17, 14, 2, 40, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 0, 13, 17, 14, 2, 4, 18, 13, 13, 17, 40, 4, 18, 13, 13, 17, 0, 13, 17, 14, 2, 40, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 91, 2 ], [ 76, 6 ], [ 92, 12 ], [ 92, 18 ], [ 85, 22 ], [ 92, 29 ], [ 92, 34 ], [ 88, 38 ], [ 92, 44 ], [ 92, 50 ], [ 79, 54 ], [ 92, 61 ], [ 92, 66 ], [ 82, 70 ], [ 83, 74 ], [ 80, 74 ], [ 89, 74 ], [ 86, 74 ], [ 77, 74 ], [ 76, 77 ], [ 79, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ] ]
[ "S = input()\nres = \"Yes\"\nif S.count('N') and not S.count('S'):\n res = \"No\"\nif not S.count('N') and S.count('S'):\n res = \"No\"\nif S.count('E') and not S.count('W'):\n res = \"No\"\nif not S.count('E') and S.count('W'):\n res = \"No\"\nprint(res)", "S = input()", "S", "input()", "input", "res = \"Yes\"", "res", "\"Yes\"", "if S.count('N') and not S.count('S'):\n res = \"No\"", "S.count('N') and not S.count('S')", "S.count('N')", "S.count", "S", "count", "'N'", "not S.count('S')", "S.count('S')", "S.count", "S", "count", "'S'", "res = \"No\"", "res", "\"No\"", "if not S.count('N') and S.count('S'):\n res = \"No\"", "not S.count('N') and S.count('S')", "not S.count('N')", "S.count('N')", "S.count", "S", "count", "'N'", "S.count('S')", "S.count", "S", "count", "'S'", "res = \"No\"", "res", "\"No\"", "if S.count('E') and not S.count('W'):\n res = \"No\"", "S.count('E') and not S.count('W')", "S.count('E')", "S.count", "S", "count", "'E'", "not S.count('W')", "S.count('W')", "S.count", "S", "count", "'W'", "res = \"No\"", "res", "\"No\"", "if not S.count('E') and S.count('W'):\n res = \"No\"", "not S.count('E') and S.count('W')", "not S.count('E')", "S.count('E')", "S.count", "S", "count", "'E'", "S.count('W')", "S.count", "S", "count", "'W'", "res = \"No\"", "res", "\"No\"", "print(res)", "print", "res", "res = \"Yes\"", "\"Yes\"", "res", "res = \"No\"", "\"No\"", "res", "res = \"No\"", "\"No\"", "res", "res = \"No\"", "\"No\"", "res", "res = \"No\"", "\"No\"", "res", "S = input()", "input()", "S" ]
S = input() res = "Yes" if S.count('N') and not S.count('S'): res = "No" if not S.count('N') and S.count('S'): res = "No" if S.count('E') and not S.count('W'): res = "No" if not S.count('E') and S.count('W'): res = "No" print(res)
[ 7, 0, 13, 4, 13, 4, 13, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 55, 2 ], [ 56, 11 ], [ 56, 14 ], [ 56, 22 ], [ 56, 25 ], [ 56, 33 ], [ 56, 36 ], [ 56, 44 ], [ 56, 47 ], [ 55, 56 ] ]
[ "S=list(input())\nif 'N' in S and 'S' not in S:\n print('No')\nelif 'S' in S and 'N' not in S:\n print('No')\nelif 'W' in S and 'E' not in S:\n print('No')\nelif 'E' in S and 'W' not in S:\n print('No')\nelse:\n print('Yes')", "S=list(input())", "S", "list(input())", "list", "input()", "input", "if 'N' in S and 'S' not in S:\n print('No')\nelif 'S' in S and 'N' not in S:\n print('No')\nelif 'W' in S and 'E' not in S:\n print('No')\nelif 'E' in S and 'W' not in S:\n print('No')\nelse:\n print('Yes')", "'N' in S and 'S' not in S", "'N' in S", "'N'", "S", "'S' not in S", "'S'", "S", "print('No')", "print", "'No'", "elif 'S' in S and 'N' not in S:\n print('No')", "'S' in S and 'N' not in S", "'S' in S", "'S'", "S", "'N' not in S", "'N'", "S", "print('No')", "print", "'No'", "elif 'W' in S and 'E' not in S:\n print('No')", "'W' in S and 'E' not in S", "'W' in S", "'W'", "S", "'E' not in S", "'E'", "S", "print('No')", "print", "'No'", "elif 'E' in S and 'W' not in S:\n print('No')", "'E' in S and 'W' not in S", "'E' in S", "'E'", "S", "'W' not in S", "'W'", "S", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "S=list(input())", "list(input())", "S" ]
S=list(input()) if 'N' in S and 'S' not in S: print('No') elif 'S' in S and 'N' not in S: print('No') elif 'W' in S and 'E' not in S: print('No') elif 'E' in S and 'W' not in S: print('No') else: print('Yes')
[ 7, 0, 13, 4, 13, 13, 14, 2, 4, 13, 13, 17, 4, 13, 17, 14, 2, 4, 13, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 50, 2 ], [ 51, 10 ], [ 51, 19 ], [ 51, 25 ], [ 51, 28 ], [ 51, 36 ], [ 51, 39 ], [ 50, 51 ] ]
[ "S=set(x for x in input())\nif len(S)==4:\n print('Yes')\nelif len(S)==2:\n if 'W' in S and 'E' in S:\n print('Yes')\n elif 'N' in S and 'S' in S:\n print('Yes')\n else:\n print('No')\nelse:\n print('No') ", "S=set(x for x in input())", "S", "set(x for x in input())", "set", "x", "if len(S)==4:\n print('Yes')\nelif len(S)==2:\n if 'W' in S and 'E' in S:\n print('Yes')\n elif 'N' in S and 'S' in S:\n print('Yes')\n else:\n print('No')\nelse:\n print('No') ", "len(S)==4", "len(S)", "len", "S", "4", "print('Yes')", "print", "'Yes'", "elif len(S)==2:\n if 'W' in S and 'E' in S:\n print('Yes')\n elif 'N' in S and 'S' in S:\n print('Yes')\n else:\n print('No')", "len(S)==2", "len(S)", "len", "S", "2", "if 'W' in S and 'E' in S:\n print('Yes')\n elif 'N' in S and 'S' in S:\n print('Yes')\n else:\n print('No')", "'W' in S and 'E' in S", "'W' in S", "'W'", "S", "'E' in S", "'E'", "S", "print('Yes')", "print", "'Yes'", "elif 'N' in S and 'S' in S:\n print('Yes')\n ", "'N' in S and 'S' in S", "'N' in S", "'N'", "S", "'S' in S", "'S'", "S", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "S=set(x for x in input())", "set(x for x in input())", "S" ]
S=set(x for x in input()) if len(S)==4: print('Yes') elif len(S)==2: if 'W' in S and 'E' in S: print('Yes') elif 'N' in S and 'S' in S: print('Yes') else: print('No') else: print('No')
[ 7, 15, 13, 12, 13, 12, 13, 0, 13, 4, 13, 0, 13, 17, 14, 2, 2, 2, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 0, 13, 17, 14, 2, 2, 2, 2, 17, 13, 2, 17, 13, 40, 17, 13, 40, 17, 13, 0, 13, 17, 14, 2, 2, 2, 40, 17, 13, 40, 17, 13, 2, 17, 13, 2, 17, 13, 0, 13, 17, 4, 13, 13, 4, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 9, 8 ], [ 78, 10 ], [ 13, 12 ], [ 8, 20 ], [ 8, 23 ], [ 8, 26 ], [ 8, 29 ], [ 32, 31 ], [ 8, 39 ], [ 8, 42 ], [ 8, 45 ], [ 8, 48 ], [ 51, 50 ], [ 8, 58 ], [ 8, 61 ], [ 8, 64 ], [ 8, 67 ], [ 70, 69 ], [ 69, 73 ], [ 50, 73 ], [ 31, 73 ], [ 12, 73 ], [ 81, 75 ] ]
[ "import sys\ndef input(): return sys.stdin.readline().strip()\n\ndef resolve():\n s=input()\n ans='No'\n if 'N' in s and 'S' in s and 'W' in s and 'E' in s:\n ans='Yes'\n elif 'N' in s and 'S' in s and \\\n 'W' not in s and 'E' not in s:\n ans='Yes'\n elif 'N' not in s and 'S' not in s and\\\n 'W' in s and 'E' in s:\n ans='Yes'\n print(ans)\nresolve()", "import sys", "sys", "def input(): return sys.stdin.readline().strip()", "input", "def resolve():\n s=input()\n ans='No'\n if 'N' in s and 'S' in s and 'W' in s and 'E' in s:\n ans='Yes'\n elif 'N' in s and 'S' in s and \\\n 'W' not in s and 'E' not in s:\n ans='Yes'\n elif 'N' not in s and 'S' not in s and\\\n 'W' in s and 'E' in s:\n ans='Yes'\n print(ans)", "resolve", "s=input()", "s", "input()", "input", "ans='No'", "ans", "'No'", "if 'N' in s and 'S' in s and 'W' in s and 'E' in s:\n ans='Yes'\n elif 'N' in s and 'S' in s and \\\n 'W' not in s and 'E' not in s:\n ans='Yes'\n elif 'N' not in s and 'S' not in s and\\\n 'W' in s and 'E' in s:\n ans='Yes'\n ", "'N' in s and 'S' in s and 'W' in s and 'E' in s", "'N' in s and 'S' in s and 'W' in s", "'N' in s and 'S' in s", "'N' in s", "'N'", "s", "'S' in s", "'S'", "s", "'W' in s", "'W'", "s", "'E' in s", "'E'", "s", "ans='Yes'", "ans", "'Yes'", "elif 'N' in s and 'S' in s and \\\n 'W' not in s and 'E' not in s:\n ans='Yes'\n ", "'N' in s and 'S' in s and \\\n 'W' not in s and 'E' not in s", "'N' in s and 'S' in s and \\\n 'W' not in s", "'N' in s and 'S' in s", "'N' in s", "'N'", "s", "'S' in s", "'S'", "s", "'W' not in s", "'W'", "s", "'E' not in s", "'E'", "s", "ans='Yes'", "ans", "'Yes'", "elif 'N' not in s and 'S' not in s and\\\n 'W' in s and 'E' in s:\n ans='Yes'\n ", "'N' not in s and 'S' not in s and\\\n 'W' in s and 'E' in s", "'N' not in s and 'S' not in s and\\\n 'W' in s", "'N' not in s and 'S' not in s", "'N' not in s", "'N'", "s", "'S' not in s", "'S'", "s", "'W' in s", "'W'", "s", "'E' in s", "'E'", "s", "ans='Yes'", "ans", "'Yes'", "print(ans)", "print", "ans", "resolve()", "resolve", "def input(): return sys.stdin.readline().strip()", "def input(): return sys.stdin.readline().strip()", "input", "def resolve():\n s=input()\n ans='No'\n if 'N' in s and 'S' in s and 'W' in s and 'E' in s:\n ans='Yes'\n elif 'N' in s and 'S' in s and \\\n 'W' not in s and 'E' not in s:\n ans='Yes'\n elif 'N' not in s and 'S' not in s and\\\n 'W' in s and 'E' in s:\n ans='Yes'\n print(ans)", "def resolve():\n s=input()\n ans='No'\n if 'N' in s and 'S' in s and 'W' in s and 'E' in s:\n ans='Yes'\n elif 'N' in s and 'S' in s and \\\n 'W' not in s and 'E' not in s:\n ans='Yes'\n elif 'N' not in s and 'S' not in s and\\\n 'W' in s and 'E' in s:\n ans='Yes'\n print(ans)", "resolve" ]
import sys def input(): return sys.stdin.readline().strip() def resolve(): s=input() ans='No' if 'N' in s and 'S' in s and 'W' in s and 'E' in s: ans='Yes' elif 'N' in s and 'S' in s and \ 'W' not in s and 'E' not in s: ans='Yes' elif 'N' not in s and 'S' not in s and\ 'W' in s and 'E' in s: ans='Yes' print(ans) resolve()
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 13, 14, 2, 4, 13, 13, 17, 14, 2, 2, 2, 4, 13, 13, 17, 2, 17, 13, 2, 17, 13, 14, 2, 2, 2, 4, 13, 13, 17, 2, 17, 13, 2, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 50, 2 ], [ 47, 8 ], [ 51, 11 ], [ 48, 16 ], [ 51, 16 ], [ 48, 24 ], [ 51, 24 ], [ 48, 28 ], [ 51, 28 ], [ 48, 31 ], [ 51, 31 ], [ 48, 38 ], [ 51, 38 ], [ 48, 42 ], [ 51, 42 ], [ 48, 45 ], [ 51, 45 ], [ 47, 48 ], [ 50, 51 ] ]
[ "l = list(input())\nl=set(l)\n\nif len(l)==4: print('Yes')\nelif len(l)==2 and 'N' in l and 'S' in l: print('Yes')\nelif len(l)==2 and 'E' in l and 'W' in l: print('Yes')\nelse: print('No')", "l = list(input())", "l", "list(input())", "list", "input()", "input", "l=set(l)", "l", "set(l)", "set", "l", "if len(l)==4: print('Yes')\nelif len(l)==2 and 'N' in l and 'S' in l: print('Yes')\nelif len(l)==2 and 'E' in l and 'W' in l: print('Yes')\nelse: print('No')", "len(l)==4", "len(l)", "len", "l", "4", "elif len(l)==2 and 'N' in l and 'S' in l: print('Yes')", "len(l)==2 and 'N' in l and 'S' in l", "len(l)==2 and 'N' in l", "len(l)==2", "len(l)", "len", "l", "2", "'N' in l", "'N'", "l", "'S' in l", "'S'", "l", "elif len(l)==2 and 'E' in l and 'W' in l: print('Yes')", "len(l)==2 and 'E' in l and 'W' in l", "len(l)==2 and 'E' in l", "len(l)==2", "len(l)", "len", "l", "2", "'E' in l", "'E'", "l", "'W' in l", "'W'", "l", "l=set(l)", "set(l)", "l", "l = list(input())", "list(input())", "l" ]
l = list(input()) l=set(l) if len(l)==4: print('Yes') elif len(l)==2 and 'N' in l and 'S' in l: print('Yes') elif len(l)==2 and 'E' in l and 'W' in l: print('Yes') else: print('No')
[ 7, 15, 13, 12, 13, 29, 4, 18, 4, 18, 18, 13, 13, 13, 13, 12, 13, 29, 4, 13, 4, 13, 12, 13, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 29, 13, 12, 13, 15, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 13, 28, 13, 13, 0, 18, 13, 13, 17, 14, 2, 2, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 29, 14, 2, 13, 17, 4, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 123, 21 ], [ 27, 26 ], [ 123, 30 ], [ 26, 35 ], [ 43, 42 ], [ 123, 46 ], [ 49, 48 ], [ 54, 53 ], [ 42, 53 ], [ 59, 56 ], [ 48, 57 ], [ 53, 58 ], [ 48, 67 ], [ 48, 72 ], [ 48, 78 ], [ 48, 83 ], [ 48, 89 ], [ 48, 94 ], [ 48, 100 ], [ 48, 105 ], [ 132, 120 ] ]
[ "import sys\n# sys.setrecursionlimit(100000)\n\n\ndef input():\n return sys.stdin.readline().strip()\n\n\ndef input_int():\n return int(input())\n\n\ndef input_int_list():\n return [int(i) for i in input().split()]\n\n\ndef main():\n from collections import defaultdict\n S = list(input())\n d = defaultdict(int)\n for s in S:\n d[s] += 1\n if (d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0) or (d[\"W\"] == 0 and d[\"E\"] > 0) or (d[\"W\"] > 0 and d[\"E\"] == 0):\n print(\"No\")\n else:\n print(\"Yes\")\n\n return\n\n\nif __name__ == \"__main__\":\n main()", "import sys", "sys", "def input():\n return sys.stdin.readline().strip()", "input", "return sys.stdin.readline().strip()", "sys.stdin.readline().strip()", "sys.stdin.readline().strip", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "strip", "def input_int():\n return int(input())", "input_int", "return int(input())", "int(input())", "int", "input()", "input", "def input_int_list():\n return [int(i) for i in input().split()]", "input_int_list", "int(i) for i in input().split()", "for i in input().split()", "i", "input().split()", "().split", "()", "input", "split", "for i in input().split()", "int(i)", "int", "i", "return [int(i) for i in input().split()]", "[int(i) for i in input().split()]", "def main():\n from collections import defaultdict\n S = list(input())\n d = defaultdict(int)\n for s in S:\n d[s] += 1\n if (d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0) or (d[\"W\"] == 0 and d[\"E\"] > 0) or (d[\"W\"] > 0 and d[\"E\"] == 0):\n print(\"No\")\n else:\n print(\"Yes\")\n\n return", "main", "from collections import defaultdict", "S = list(input())", "S", "list(input())", "list", "input()", "input", "d = defaultdict(int)", "d", "defaultdict(int)", "defaultdict", "int", "for s in S:\n d[s] += 1\n ", "s", "S", "d[s] += 1", "d[s]", "d", "s", "1", "if (d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0) or (d[\"W\"] == 0 and d[\"E\"] > 0) or (d[\"W\"] > 0 and d[\"E\"] == 0):\n print(\"No\")\n else:\n print(\"Yes\")\n\n ", "(d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0) or (d[\"W\"] == 0 and d[\"E\"] > 0) or (d[\"W\"] > 0 and d[\"E\"] == 0)", "(d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0) or (d[\"W\"] == 0 and d[\"E\"] > 0)", "(d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0)", "d[\"N\"] == 0 and d[\"S\"] > 0", "d[\"N\"] == 0", "d[\"N\"]", "d", "\"N\"", "0", "d[\"S\"] > 0", "d[\"S\"]", "d", "\"S\"", "0", "d[\"N\"] > 0 and d[\"S\"] == 0", "d[\"N\"] > 0", "d[\"N\"]", "d", "\"N\"", "0", "d[\"S\"] == 0", "d[\"S\"]", "d", "\"S\"", "0", "d[\"W\"] == 0 and d[\"E\"] > 0", "d[\"W\"] == 0", "d[\"W\"]", "d", "\"W\"", "0", "d[\"E\"] > 0", "d[\"E\"]", "d", "\"E\"", "0", "d[\"W\"] > 0 and d[\"E\"] == 0", "d[\"W\"] > 0", "d[\"W\"]", "d", "\"W\"", "0", "d[\"E\"] == 0", "d[\"E\"]", "d", "\"E\"", "0", "print(\"No\")", "print", "\"No\"", "print(\"Yes\")", "print", "\"Yes\"", "return", "if __name__ == \"__main__\":\n main()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "def input():\n return sys.stdin.readline().strip()", "def input():\n return sys.stdin.readline().strip()", "input", "def input_int():\n return int(input())", "def input_int():\n return int(input())", "input_int", "def input_int_list():\n return [int(i) for i in input().split()]", "def input_int_list():\n return [int(i) for i in input().split()]", "input_int_list", "def main():\n from collections import defaultdict\n S = list(input())\n d = defaultdict(int)\n for s in S:\n d[s] += 1\n if (d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0) or (d[\"W\"] == 0 and d[\"E\"] > 0) or (d[\"W\"] > 0 and d[\"E\"] == 0):\n print(\"No\")\n else:\n print(\"Yes\")\n\n return", "def main():\n from collections import defaultdict\n S = list(input())\n d = defaultdict(int)\n for s in S:\n d[s] += 1\n if (d[\"N\"] == 0 and d[\"S\"] > 0) or (d[\"N\"] > 0 and d[\"S\"] == 0) or (d[\"W\"] == 0 and d[\"E\"] > 0) or (d[\"W\"] > 0 and d[\"E\"] == 0):\n print(\"No\")\n else:\n print(\"Yes\")\n\n return", "main" ]
import sys # sys.setrecursionlimit(100000) def input(): return sys.stdin.readline().strip() def input_int(): return int(input()) def input_int_list(): return [int(i) for i in input().split()] def main(): from collections import defaultdict S = list(input()) d = defaultdict(int) for s in S: d[s] += 1 if (d["N"] == 0 and d["S"] > 0) or (d["N"] > 0 and d["S"] == 0) or (d["W"] == 0 and d["E"] > 0) or (d["W"] > 0 and d["E"] == 0): print("No") else: print("Yes") return if __name__ == "__main__": main()
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 28, 13, 13, 4, 18, 13, 13, 13, 0, 13, 4, 13, 13, 14, 2, 4, 13, 13, 17, 4, 13, 17, 14, 2, 4, 13, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 98, 2 ], [ 104, 6 ], [ 11, 10 ], [ 99, 10 ], [ 105, 14 ], [ 10, 16 ], [ 101, 18 ], [ 105, 21 ], [ 102, 26 ], [ 105, 26 ], [ 102, 35 ], [ 105, 35 ], [ 102, 42 ], [ 105, 42 ], [ 102, 47 ], [ 105, 47 ], [ 102, 53 ], [ 105, 53 ], [ 102, 58 ], [ 105, 58 ], [ 102, 69 ], [ 105, 69 ], [ 102, 74 ], [ 105, 74 ], [ 102, 80 ], [ 105, 80 ], [ 102, 85 ], [ 105, 85 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ] ]
[ "S=input()\na=set()\nfor s in S:\n a.add(s)\na=list(a)\nif len(a)==4:\n print('Yes')\nelif len(a)==2:\n if (a[0]=='N' or a[0]=='S') and (a[1]=='N' or a[1]=='S'):\n print('Yes')\n elif (a[0]=='E' or a[0]=='W') and (a[1]=='E' or a[1]=='W'):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "S=input()", "S", "input()", "input", "a=set()", "a", "set()", "set", "for s in S:\n a.add(s)", "s", "S", "a.add(s)", "a.add", "a", "add", "s", "a=list(a)", "a", "list(a)", "list", "a", "if len(a)==4:\n print('Yes')\nelif len(a)==2:\n if (a[0]=='N' or a[0]=='S') and (a[1]=='N' or a[1]=='S'):\n print('Yes')\n elif (a[0]=='E' or a[0]=='W') and (a[1]=='E' or a[1]=='W'):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "len(a)==4", "len(a)", "len", "a", "4", "print('Yes')", "print", "'Yes'", "elif len(a)==2:\n if (a[0]=='N' or a[0]=='S') and (a[1]=='N' or a[1]=='S'):\n print('Yes')\n elif (a[0]=='E' or a[0]=='W') and (a[1]=='E' or a[1]=='W'):\n print('Yes')\n else:\n print('No')", "len(a)==2", "len(a)", "len", "a", "2", "if (a[0]=='N' or a[0]=='S') and (a[1]=='N' or a[1]=='S'):\n print('Yes')\n elif (a[0]=='E' or a[0]=='W') and (a[1]=='E' or a[1]=='W'):\n print('Yes')\n else:\n print('No')", "(a[0]=='N' or a[0]=='S') and (a[1]=='N' or a[1]=='S')", "a[0]=='N' or a[0]=='S'", "a[0]=='N'", "a[0]", "a", "0", "'N'", "a[0]=='S'", "a[0]", "a", "0", "'S'", "a[1]=='N' or a[1]=='S'", "a[1]=='N'", "a[1]", "a", "1", "'N'", "a[1]=='S'", "a[1]", "a", "1", "'S'", "print('Yes')", "print", "'Yes'", "elif (a[0]=='E' or a[0]=='W') and (a[1]=='E' or a[1]=='W'):\n print('Yes')\n ", "(a[0]=='E' or a[0]=='W') and (a[1]=='E' or a[1]=='W')", "a[0]=='E' or a[0]=='W'", "a[0]=='E'", "a[0]", "a", "0", "'E'", "a[0]=='W'", "a[0]", "a", "0", "'W'", "a[1]=='E' or a[1]=='W'", "a[1]=='E'", "a[1]", "a", "1", "'E'", "a[1]=='W'", "a[1]", "a", "1", "'W'", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "S=input()", "input()", "S", "a=list(a)", "list(a)", "a", "a=set()", "set()", "a" ]
S=input() a=set() for s in S: a.add(s) a=list(a) if len(a)==4: print('Yes') elif len(a)==2: if (a[0]=='N' or a[0]=='S') and (a[1]=='N' or a[1]=='S'): print('Yes') elif (a[0]=='E' or a[0]=='W') and (a[1]=='E' or a[1]=='W'): print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 97, 2 ], [ 100, 6 ], [ 98, 9 ], [ 106, 13 ], [ 98, 16 ], [ 103, 20 ], [ 98, 23 ], [ 94, 27 ], [ 98, 30 ], [ 101, 38 ], [ 104, 41 ], [ 107, 44 ], [ 95, 47 ], [ 101, 57 ], [ 104, 60 ], [ 107, 63 ], [ 95, 66 ], [ 101, 76 ], [ 104, 79 ], [ 107, 82 ], [ 95, 85 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ] ]
[ "# import collections\nS = input()\n# CS = collections.Counter(S)\n# print(CS)\ncn = S.count('N')\nce = S.count('E')\ncs = S.count('S')\ncw = S.count('W')\n# print(cn, cs, cw, ce)\nif cn > 0 and cs > 0 and ce == 0 and cw == 0:\n print('Yes')\nelif cn == 0 and cs == 0 and ce > 0 and cw > 0:\n print('Yes')\nelif cn > 0 and cs > 0 and ce > 0 and cw > 0:\n print('Yes')\nelse:\n print('No')", "S = input()", "S", "input()", "input", "cn = S.count('N')", "cn", "S.count('N')", "S.count", "S", "count", "'N'", "ce = S.count('E')", "ce", "S.count('E')", "S.count", "S", "count", "'E'", "cs = S.count('S')", "cs", "S.count('S')", "S.count", "S", "count", "'S'", "cw = S.count('W')", "cw", "S.count('W')", "S.count", "S", "count", "'W'", "if cn > 0 and cs > 0 and ce == 0 and cw == 0:\n print('Yes')\nelif cn == 0 and cs == 0 and ce > 0 and cw > 0:\n print('Yes')\nelif cn > 0 and cs > 0 and ce > 0 and cw > 0:\n print('Yes')\nelse:\n print('No')", "cn > 0 and cs > 0 and ce == 0 and cw == 0", "cn > 0 and cs > 0 and ce == 0", "cn > 0 and cs > 0", "cn > 0", "cn", "0", "cs > 0", "cs", "0", "ce == 0", "ce", "0", "cw == 0", "cw", "0", "print('Yes')", "print", "'Yes'", "elif cn == 0 and cs == 0 and ce > 0 and cw > 0:\n print('Yes')", "cn == 0 and cs == 0 and ce > 0 and cw > 0", "cn == 0 and cs == 0 and ce > 0", "cn == 0 and cs == 0", "cn == 0", "cn", "0", "cs == 0", "cs", "0", "ce > 0", "ce", "0", "cw > 0", "cw", "0", "print('Yes')", "print", "'Yes'", "elif cn > 0 and cs > 0 and ce > 0 and cw > 0:\n print('Yes')", "cn > 0 and cs > 0 and ce > 0 and cw > 0", "cn > 0 and cs > 0 and ce > 0", "cn > 0 and cs > 0", "cn > 0", "cn", "0", "cs > 0", "cs", "0", "ce > 0", "ce", "0", "cw > 0", "cw", "0", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "cw = S.count('W')", "S.count('W')", "cw", "S = input()", "input()", "S", "cn = S.count('N')", "S.count('N')", "cn", "cs = S.count('S')", "S.count('S')", "cs", "ce = S.count('E')", "S.count('E')", "ce" ]
# import collections S = input() # CS = collections.Counter(S) # print(CS) cn = S.count('N') ce = S.count('E') cs = S.count('S') cw = S.count('W') # print(cn, cs, cw, ce) if cn > 0 and cs > 0 and ce == 0 and cw == 0: print('Yes') elif cn == 0 and cs == 0 and ce > 0 and cw > 0: print('Yes') elif cn > 0 and cs > 0 and ce > 0 and cw > 0: print('Yes') else: print('No')
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 29, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 29, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 29, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 29, 4, 13, 17, 29, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 11, 10 ], [ 4, 13 ], [ 18, 17 ], [ 4, 20 ], [ 25, 24 ], [ 4, 27 ], [ 32, 31 ], [ 4, 34 ], [ 10, 40 ], [ 17, 43 ], [ 10, 52 ], [ 17, 55 ], [ 24, 64 ], [ 31, 67 ], [ 24, 76 ], [ 31, 79 ], [ 93, 90 ] ]
[ "def resolve():\n S = str(input())\n n = S.count('N')\n s = S.count('S')\n w = S.count('W')\n e = S.count('E')\n if n > 0 and s == 0:\n print('No')\n return\n if n == 0 and s > 0:\n print('No')\n return\n if w > 0 and e == 0:\n print('No')\n return\n if w == 0 and e > 0:\n print('No')\n return\n print('Yes')\n\n return\n\n\nresolve()", "def resolve():\n S = str(input())\n n = S.count('N')\n s = S.count('S')\n w = S.count('W')\n e = S.count('E')\n if n > 0 and s == 0:\n print('No')\n return\n if n == 0 and s > 0:\n print('No')\n return\n if w > 0 and e == 0:\n print('No')\n return\n if w == 0 and e > 0:\n print('No')\n return\n print('Yes')\n\n return", "resolve", "S = str(input())", "S", "str(input())", "str", "input()", "input", "n = S.count('N')", "n", "S.count('N')", "S.count", "S", "count", "'N'", "s = S.count('S')", "s", "S.count('S')", "S.count", "S", "count", "'S'", "w = S.count('W')", "w", "S.count('W')", "S.count", "S", "count", "'W'", "e = S.count('E')", "e", "S.count('E')", "S.count", "S", "count", "'E'", "if n > 0 and s == 0:\n print('No')\n return\n ", "n > 0 and s == 0", "n > 0", "n", "0", "s == 0", "s", "0", "print('No')", "print", "'No'", "return", "if n == 0 and s > 0:\n print('No')\n return\n ", "n == 0 and s > 0", "n == 0", "n", "0", "s > 0", "s", "0", "print('No')", "print", "'No'", "return", "if w > 0 and e == 0:\n print('No')\n return\n ", "w > 0 and e == 0", "w > 0", "w", "0", "e == 0", "e", "0", "print('No')", "print", "'No'", "return", "if w == 0 and e > 0:\n print('No')\n return\n ", "w == 0 and e > 0", "w == 0", "w", "0", "e > 0", "e", "0", "print('No')", "print", "'No'", "return", "print('Yes')", "print", "'Yes'", "return", "resolve()", "resolve", "def resolve():\n S = str(input())\n n = S.count('N')\n s = S.count('S')\n w = S.count('W')\n e = S.count('E')\n if n > 0 and s == 0:\n print('No')\n return\n if n == 0 and s > 0:\n print('No')\n return\n if w > 0 and e == 0:\n print('No')\n return\n if w == 0 and e > 0:\n print('No')\n return\n print('Yes')\n\n return", "def resolve():\n S = str(input())\n n = S.count('N')\n s = S.count('S')\n w = S.count('W')\n e = S.count('E')\n if n > 0 and s == 0:\n print('No')\n return\n if n == 0 and s > 0:\n print('No')\n return\n if w > 0 and e == 0:\n print('No')\n return\n if w == 0 and e > 0:\n print('No')\n return\n print('Yes')\n\n return", "resolve" ]
def resolve(): S = str(input()) n = S.count('N') s = S.count('S') w = S.count('W') e = S.count('E') if n > 0 and s == 0: print('No') return if n == 0 and s > 0: print('No') return if w > 0 and e == 0: print('No') return if w == 0 and e > 0: print('No') return print('Yes') return resolve()
[ 7, 15, 13, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 13, 14, 2, 4, 13, 13, 39, 17, 17, 4, 13, 17, 14, 2, 2, 13, 4, 13, 39, 17, 17, 2, 13, 4, 13, 39, 17, 17, 4, 13, 17, 14, 2, 4, 13, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 7, 6 ], [ 13, 12 ], [ 6, 15 ], [ 12, 20 ], [ 12, 30 ], [ 12, 37 ], [ 12, 50 ], [ 66, 63 ] ]
[ "import collections\n\ndef main():\n S = list(input())\n Sset = set(S)\n if len(Sset) in [1, 3]:\n print('No')\n elif Sset == set(['S', 'N']) or Sset == set(['W', 'E']):\n print('Yes')\n elif len(Sset) == 4:\n print('Yes')\n else:\n print('No')\n\nif __name__ == \"__main__\":\n main()", "import collections", "collections", "def main():\n S = list(input())\n Sset = set(S)\n if len(Sset) in [1, 3]:\n print('No')\n elif Sset == set(['S', 'N']) or Sset == set(['W', 'E']):\n print('Yes')\n elif len(Sset) == 4:\n print('Yes')\n else:\n print('No')", "main", "S = list(input())", "S", "list(input())", "list", "input()", "input", "Sset = set(S)", "Sset", "set(S)", "set", "S", "if len(Sset) in [1, 3]:\n print('No')\n elif Sset == set(['S', 'N']) or Sset == set(['W', 'E']):\n print('Yes')\n elif len(Sset) == 4:\n print('Yes')\n else:\n print('No')", "len(Sset) in [1, 3]", "len(Sset)", "len", "Sset", "[1, 3]", "1", "3", "print('No')", "print", "'No'", "elif Sset == set(['S', 'N']) or Sset == set(['W', 'E']):\n print('Yes')\n ", "Sset == set(['S', 'N']) or Sset == set(['W', 'E'])", "Sset == set(['S', 'N'])", "Sset", "set(['S', 'N'])", "set", "['S', 'N']", "'S'", "'N'", "Sset == set(['W', 'E'])", "Sset", "set(['W', 'E'])", "set", "['W', 'E']", "'W'", "'E'", "print('Yes')", "print", "'Yes'", "elif len(Sset) == 4:\n print('Yes')\n ", "len(Sset) == 4", "len(Sset)", "len", "Sset", "4", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "if __name__ == \"__main__\":\n main()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "def main():\n S = list(input())\n Sset = set(S)\n if len(Sset) in [1, 3]:\n print('No')\n elif Sset == set(['S', 'N']) or Sset == set(['W', 'E']):\n print('Yes')\n elif len(Sset) == 4:\n print('Yes')\n else:\n print('No')", "def main():\n S = list(input())\n Sset = set(S)\n if len(Sset) in [1, 3]:\n print('No')\n elif Sset == set(['S', 'N']) or Sset == set(['W', 'E']):\n print('Yes')\n elif len(Sset) == 4:\n print('Yes')\n else:\n print('No')", "main" ]
import collections def main(): S = list(input()) Sset = set(S) if len(Sset) in [1, 3]: print('No') elif Sset == set(['S', 'N']) or Sset == set(['W', 'E']): print('Yes') elif len(Sset) == 4: print('Yes') else: print('No') if __name__ == "__main__": main()
[ 7, 15, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 14, 40, 18, 13, 17, 18, 13, 17, 0, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 14, 40, 18, 13, 17, 18, 13, 17, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 77, 4 ], [ 65, 10 ], [ 74, 13 ], [ 78, 18 ], [ 75, 23 ], [ 75, 26 ], [ 75, 32 ], [ 75, 35 ], [ 68, 38 ], [ 75, 44 ], [ 75, 47 ], [ 75, 53 ], [ 75, 56 ], [ 71, 59 ], [ 72, 63 ], [ 69, 63 ], [ 66, 63 ], [ 65, 66 ], [ 68, 69 ], [ 71, 72 ], [ 74, 75 ], [ 77, 78 ] ]
[ "import collections\ns = list(input())\nans = \"Yes\"\nc = collections.Counter(s)\n\nif c[\"N\"] * c[\"S\"] == 0:\n if c[\"N\"] != c[\"S\"]:\n ans = \"No\"\nif c[\"W\"] * c[\"E\"] == 0:\n if c[\"W\"] != c[\"E\"]:\n ans = \"No\"\n\nprint(ans)", "import collections", "collections", "s = list(input())", "s", "list(input())", "list", "input()", "input", "ans = \"Yes\"", "ans", "\"Yes\"", "c = collections.Counter(s)", "c", "collections.Counter(s)", "collections.Counter", "collections", "Counter", "s", "if c[\"N\"] * c[\"S\"] == 0:\n if c[\"N\"] != c[\"S\"]:\n ans = \"No\"", "c[\"N\"] * c[\"S\"] == 0", "c[\"N\"] * c[\"S\"]", "c[\"N\"]", "c", "\"N\"", "c[\"S\"]", "c", "\"S\"", "0", "if c[\"N\"] != c[\"S\"]:\n ans = \"No\"", "c[\"N\"] != c[\"S\"]", "c[\"N\"]", "c", "\"N\"", "c[\"S\"]", "c", "\"S\"", "ans = \"No\"", "ans", "\"No\"", "if c[\"W\"] * c[\"E\"] == 0:\n if c[\"W\"] != c[\"E\"]:\n ans = \"No\"", "c[\"W\"] * c[\"E\"] == 0", "c[\"W\"] * c[\"E\"]", "c[\"W\"]", "c", "\"W\"", "c[\"E\"]", "c", "\"E\"", "0", "if c[\"W\"] != c[\"E\"]:\n ans = \"No\"", "c[\"W\"] != c[\"E\"]", "c[\"W\"]", "c", "\"W\"", "c[\"E\"]", "c", "\"E\"", "ans = \"No\"", "ans", "\"No\"", "print(ans)", "print", "ans", "ans = \"Yes\"", "\"Yes\"", "ans", "ans = \"No\"", "\"No\"", "ans", "ans = \"No\"", "\"No\"", "ans", "c = collections.Counter(s)", "collections.Counter(s)", "c", "s = list(input())", "list(input())", "s" ]
import collections s = list(input()) ans = "Yes" c = collections.Counter(s) if c["N"] * c["S"] == 0: if c["N"] != c["S"]: ans = "No" if c["W"] * c["E"] == 0: if c["W"] != c["E"]: ans = "No" print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 14, 2, 2, 2, 17, 13, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 26, 2 ], [ 27, 12 ], [ 27, 15 ], [ 27, 18 ], [ 26, 27 ] ]
[ "s = set(input())\nif {\"N\",\"S\"} == s or {\"W\",\"E\"} == s or {\"N\",\"S\",\"W\",\"E\"} == s:\n print(\"Yes\")\nelse:\n print(\"No\")", "s = set(input())", "s", "set(input())", "set", "input()", "input", "if {\"N\",\"S\"} == s or {\"W\",\"E\"} == s or {\"N\",\"S\",\"W\",\"E\"} == s:\n print(\"Yes\")\nelse:\n print(\"No\")", "{\"N\",\"S\"} == s or {\"W\",\"E\"} == s or {\"N\",\"S\",\"W\",\"E\"} == s", "{\"N\",\"S\"} == s or {\"W\",\"E\"} == s", "{\"N\",\"S\"} == s", "{\"N\",\"S\"}", "s", "{\"W\",\"E\"} == s", "{\"W\",\"E\"}", "s", "{\"N\",\"S\",\"W\",\"E\"} == s", "{\"N\",\"S\",\"W\",\"E\"}", "s", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "s = set(input())", "set(input())", "s" ]
s = set(input()) if {"N","S"} == s or {"W","E"} == s or {"N","S","W","E"} == s: print("Yes") else: print("No")
[ 7, 0, 13, 4, 18, 4, 13, 13, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 17, 40, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 17, 40, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 17, 0, 13, 17, 4, 13, 8, 13, 17, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 83, 2 ], [ 80, 9 ], [ 84, 17 ], [ 84, 22 ], [ 84, 30 ], [ 84, 35 ], [ 89, 40 ], [ 84, 48 ], [ 84, 53 ], [ 84, 61 ], [ 84, 66 ], [ 86, 71 ], [ 87, 76 ], [ 90, 76 ], [ 81, 76 ], [ 80, 81 ], [ 83, 84 ], [ 86, 87 ], [ 89, 90 ] ]
[ "S = input().strip()\nf = True\nif S.count(\"N\")*S.count(\"S\") == 0 and S.count(\"N\")+S.count(\"S\") != 0:\n f = False\nif S.count(\"E\")*S.count(\"W\") == 0 and S.count(\"E\")+S.count(\"W\") != 0:\n f = False\nprint(\"Yes\" if f else \"No\")", "S = input().strip()", "S", "input().strip()", "().strip", "()", "input", "strip", "f = True", "f", "True", "if S.count(\"N\")*S.count(\"S\") == 0 and S.count(\"N\")+S.count(\"S\") != 0:\n f = False", "S.count(\"N\")*S.count(\"S\") == 0 and S.count(\"N\")+S.count(\"S\") != 0", "S.count(\"N\")*S.count(\"S\") == 0", "S.count(\"N\")*S.count(\"S\")", "S.count(\"N\")", "S.count", "S", "count", "\"N\"", "S.count(\"S\")", "S.count", "S", "count", "\"S\"", "0", "S.count(\"N\")+S.count(\"S\") != 0", "S.count(\"N\")+S.count(\"S\")", "S.count(\"N\")", "S.count", "S", "count", "\"N\"", "S.count(\"S\")", "S.count", "S", "count", "\"S\"", "0", "f = False", "f", "False", "if S.count(\"E\")*S.count(\"W\") == 0 and S.count(\"E\")+S.count(\"W\") != 0:\n f = False", "S.count(\"E\")*S.count(\"W\") == 0 and S.count(\"E\")+S.count(\"W\") != 0", "S.count(\"E\")*S.count(\"W\") == 0", "S.count(\"E\")*S.count(\"W\")", "S.count(\"E\")", "S.count", "S", "count", "\"E\"", "S.count(\"W\")", "S.count", "S", "count", "\"W\"", "0", "S.count(\"E\")+S.count(\"W\") != 0", "S.count(\"E\")+S.count(\"W\")", "S.count(\"E\")", "S.count", "S", "count", "\"E\"", "S.count(\"W\")", "S.count", "S", "count", "\"W\"", "0", "f = False", "f", "False", "print(\"Yes\" if f else \"No\")", "print", "\"Yes\" if f else \"No\"", "f", "\"Yes\"", "\"No\"", "f = True", "True", "f", "S = input().strip()", "input().strip()", "S", "f = False", "False", "f", "f = False", "False", "f" ]
S = input().strip() f = True if S.count("N")*S.count("S") == 0 and S.count("N")+S.count("S") != 0: f = False if S.count("E")*S.count("W") == 0 and S.count("E")+S.count("W") != 0: f = False print("Yes" if f else "No")
[ 7, 0, 13, 4, 13, 0, 13, 21, 22, 17, 17, 22, 17, 17, 22, 17, 17, 22, 17, 17, 28, 13, 13, 14, 40, 18, 13, 13, 0, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 40, 2, 18, 13, 17, 18, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 40, 2, 18, 13, 17, 18, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 21, 13 ]
[ [ 77, 2 ], [ 80, 6 ], [ 22, 21 ], [ 78, 21 ], [ 29, 25 ], [ 81, 26 ], [ 21, 27 ], [ 32, 29 ], [ 81, 30 ], [ 21, 31 ], [ 81, 37 ], [ 81, 40 ], [ 81, 45 ], [ 81, 48 ], [ 81, 54 ], [ 81, 57 ], [ 81, 62 ], [ 81, 65 ], [ 77, 78 ], [ 80, 81 ] ]
[ "S = input()\n\nmoved = {\"N\": False, \"W\": False, \"S\": False, \"E\": False}\nfor s in S:\n if not moved[s]:\n moved[s] = True\n\nif (moved[\"N\"] and moved[\"S\"]) or not (moved[\"N\"] or moved[\"S\"]):\n if (moved[\"W\"] and moved[\"E\"]) or not (moved[\"W\"] or moved[\"E\"]):\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "S = input()", "S", "input()", "input", "moved = {\"N\": False, \"W\": False, \"S\": False, \"E\": False}", "moved", "{\"N\": False, \"W\": False, \"S\": False, \"E\": False}", "\"N\"", "\"N\"", "False", "\"W\"", "\"W\"", "False", "\"S\"", "\"S\"", "False", "\"E\"", "\"E\"", "False", "for s in S:\n if not moved[s]:\n moved[s] = True", "s", "S", "if not moved[s]:\n moved[s] = True", "not moved[s]", "moved[s]", "moved", "s", "moved[s] = True", "moved[s]", "moved", "s", "True", "if (moved[\"N\"] and moved[\"S\"]) or not (moved[\"N\"] or moved[\"S\"]):\n if (moved[\"W\"] and moved[\"E\"]) or not (moved[\"W\"] or moved[\"E\"]):\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "(moved[\"N\"] and moved[\"S\"]) or not (moved[\"N\"] or moved[\"S\"])", "moved[\"N\"] and moved[\"S\"]", "moved[\"N\"]", "moved", "\"N\"", "moved[\"S\"]", "moved", "\"S\"", "not (moved[\"N\"] or moved[\"S\"])", "moved[\"N\"] or moved[\"S\"]", "moved[\"N\"]", "moved", "\"N\"", "moved[\"S\"]", "moved", "\"S\"", "if (moved[\"W\"] and moved[\"E\"]) or not (moved[\"W\"] or moved[\"E\"]):\n print(\"Yes\")\n else:\n print(\"No\")", "(moved[\"W\"] and moved[\"E\"]) or not (moved[\"W\"] or moved[\"E\"])", "moved[\"W\"] and moved[\"E\"]", "moved[\"W\"]", "moved", "\"W\"", "moved[\"E\"]", "moved", "\"E\"", "not (moved[\"W\"] or moved[\"E\"])", "moved[\"W\"] or moved[\"E\"]", "moved[\"W\"]", "moved", "\"W\"", "moved[\"E\"]", "moved", "\"E\"", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "S = input()", "input()", "S", "moved = {\"N\": False, \"W\": False, \"S\": False, \"E\": False}", "{\"N\": False, \"W\": False, \"S\": False, \"E\": False}", "moved" ]
S = input() moved = {"N": False, "W": False, "S": False, "E": False} for s in S: if not moved[s]: moved[s] = True if (moved["N"] and moved["S"]) or not (moved["N"] or moved["S"]): if (moved["W"] and moved["E"]) or not (moved["W"] or moved["E"]): print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 4, 13, 13, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 14, 40, 2, 13, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 40, 13, 17, 40, 13, 17, 14, 40, 2, 13, 13, 17, 4, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 118, 2 ], [ 139, 6 ], [ 121, 9 ], [ 127, 12 ], [ 142, 15 ], [ 130, 18 ], [ 119, 21 ], [ 24, 23 ], [ 131, 26 ], [ 119, 30 ], [ 23, 31 ], [ 133, 34 ], [ 119, 39 ], [ 23, 40 ], [ 124, 43 ], [ 119, 48 ], [ 23, 49 ], [ 136, 52 ], [ 119, 57 ], [ 23, 58 ], [ 145, 61 ], [ 134, 66 ], [ 140, 66 ], [ 137, 69 ], [ 128, 69 ], [ 146, 74 ], [ 143, 74 ], [ 125, 75 ], [ 122, 75 ], [ 134, 86 ], [ 140, 86 ], [ 137, 89 ], [ 128, 89 ], [ 146, 94 ], [ 143, 94 ], [ 125, 95 ], [ 122, 95 ], [ 146, 103 ], [ 143, 103 ], [ 125, 106 ], [ 122, 106 ], [ 118, 119 ], [ 121, 122 ], [ 124, 125 ], [ 127, 128 ], [ 130, 131 ], [ 133, 134 ], [ 136, 137 ], [ 139, 140 ], [ 142, 143 ], [ 145, 146 ] ]
[ "S = input()\nn = 0\nw = 0\ns = 0\ne = 0\nx = len(S)\nfor i in range(x):\n if S[i] == 'N':\n n += 1\n elif S[i] == 'W':\n w += 1\n elif S[i] == 'S':\n s += 1\n elif S[i] == 'E':\n e += 1\n\nif n == 0 and s == 0:\n if e * w != 0:\n print('Yes')\n else:\n print('No')\n\nelif n != 0 and s != 0:\n if e * w != 0:\n print('Yes')\n elif e == 0 and w == 0:\n print('Yes')\n else:\n print('No')\n\nelse:\n print('No')", "S = input()", "S", "input()", "input", "n = 0", "n", "0", "w = 0", "w", "0", "s = 0", "s", "0", "e = 0", "e", "0", "x = len(S)", "x", "len(S)", "len", "S", "for i in range(x):\n if S[i] == 'N':\n n += 1\n elif S[i] == 'W':\n w += 1\n elif S[i] == 'S':\n s += 1\n elif S[i] == 'E':\n e += 1", "i", "range(x)", "range", "x", "if S[i] == 'N':\n n += 1\n elif S[i] == 'W':\n w += 1\n elif S[i] == 'S':\n s += 1\n elif S[i] == 'E':\n e += 1", "S[i] == 'N'", "S[i]", "S", "i", "'N'", "n += 1", "n", "1", "elif S[i] == 'W':\n w += 1\n ", "S[i] == 'W'", "S[i]", "S", "i", "'W'", "w += 1", "w", "1", "elif S[i] == 'S':\n s += 1\n ", "S[i] == 'S'", "S[i]", "S", "i", "'S'", "s += 1", "s", "1", "elif S[i] == 'E':\n e += 1", "S[i] == 'E'", "S[i]", "S", "i", "'E'", "e += 1", "e", "1", "if n == 0 and s == 0:\n if e * w != 0:\n print('Yes')\n else:\n print('No')\n\nelif n != 0 and s != 0:\n if e * w != 0:\n print('Yes')\n elif e == 0 and w == 0:\n print('Yes')\n else:\n print('No')\n\nelse:\n print('No')", "n == 0 and s == 0", "n == 0", "n", "0", "s == 0", "s", "0", "if e * w != 0:\n print('Yes')\n else:\n print('No')", "e * w != 0", "e * w", "e", "w", "0", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "elif n != 0 and s != 0:\n if e * w != 0:\n print('Yes')\n elif e == 0 and w == 0:\n print('Yes')\n else:\n print('No')", "n != 0 and s != 0", "n != 0", "n", "0", "s != 0", "s", "0", "if e * w != 0:\n print('Yes')\n elif e == 0 and w == 0:\n print('Yes')\n else:\n print('No')", "e * w != 0", "e * w", "e", "w", "0", "print('Yes')", "print", "'Yes'", "elif e == 0 and w == 0:\n print('Yes')\n ", "e == 0 and w == 0", "e == 0", "e", "0", "w == 0", "w", "0", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "S = input()", "input()", "S", "w = 0", "0", "w", "w += 1", "1", "w", "s = 0", "0", "s", "x = len(S)", "len(S)", "x", "n += 1", "1", "n", "s += 1", "1", "s", "n = 0", "0", "n", "e = 0", "0", "e", "e += 1", "1", "e" ]
S = input() n = 0 w = 0 s = 0 e = 0 x = len(S) for i in range(x): if S[i] == 'N': n += 1 elif S[i] == 'W': w += 1 elif S[i] == 'S': s += 1 elif S[i] == 'E': e += 1 if n == 0 and s == 0: if e * w != 0: print('Yes') else: print('No') elif n != 0 and s != 0: if e * w != 0: print('Yes') elif e == 0 and w == 0: print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 39, 17, 17, 17, 17, 0, 13, 17, 14, 4, 13, 2, 18, 13, 13, 13, 0, 13, 17, 14, 2, 2, 2, 2, 18, 13, 17, 13, 40, 18, 13, 17, 13, 2, 18, 13, 17, 13, 40, 18, 13, 17, 13, 0, 13, 17, 14, 2, 2, 2, 40, 18, 13, 17, 13, 2, 18, 13, 17, 13, 40, 18, 13, 17, 13, 2, 18, 13, 17, 13, 0, 13, 17, 14, 13, 4, 13, 17, 4, 13, 17, 10, 39, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 106, 2 ], [ 112, 6 ], [ 107, 9 ], [ 94, 11 ], [ 100, 18 ], [ 95, 25 ], [ 107, 27 ], [ 103, 29 ], [ 95, 37 ], [ 107, 39 ], [ 95, 42 ], [ 107, 44 ], [ 95, 47 ], [ 107, 49 ], [ 95, 52 ], [ 107, 54 ], [ 109, 56 ], [ 95, 64 ], [ 107, 66 ], [ 95, 69 ], [ 107, 71 ], [ 95, 74 ], [ 107, 76 ], [ 95, 79 ], [ 107, 81 ], [ 97, 83 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ] ]
[ "s=input()\nss=set(s)\na=[\"N\",\"W\",\"S\",\"E\"]\nflg=False\nif all(a[i] in s for i in range(4)):\n flg=True\nif a[0] in s and a[1] not in s and a[2] in s and a[3] not in s:\n flg=True\nif a[0] not in s and a[1] in s and a[2] not in s and a[3] in s:\n flg=True\nif flg:\n print(\"Yes\")\nelse:\n print(\"No\")", "s=input()", "s", "input()", "input", "ss=set(s)", "ss", "set(s)", "set", "s", "a=[\"N\",\"W\",\"S\",\"E\"]", "a", "[\"N\",\"W\",\"S\",\"E\"]", "\"N\"", "\"W\"", "\"S\"", "\"E\"", "flg=False", "flg", "False", "if all(a[i] in s for i in range(4)):\n flg=True", "all(a[i] in s for i in range(4))", "all", "a[i] in s", "a[i]", "a", "i", "s", "flg=True", "flg", "True", "if a[0] in s and a[1] not in s and a[2] in s and a[3] not in s:\n flg=True", "a[0] in s and a[1] not in s and a[2] in s and a[3] not in s", "a[0] in s and a[1] not in s and a[2] in s", "a[0] in s and a[1] not in s", "a[0] in s", "a[0]", "a", "0", "s", "a[1] not in s", "a[1]", "a", "1", "s", "a[2] in s", "a[2]", "a", "2", "s", "a[3] not in s", "a[3]", "a", "3", "s", "flg=True", "flg", "True", "if a[0] not in s and a[1] in s and a[2] not in s and a[3] in s:\n flg=True", "a[0] not in s and a[1] in s and a[2] not in s and a[3] in s", "a[0] not in s and a[1] in s and a[2] not in s", "a[0] not in s and a[1] in s", "a[0] not in s", "a[0]", "a", "0", "s", "a[1] in s", "a[1]", "a", "1", "s", "a[2] not in s", "a[2]", "a", "2", "s", "a[3] in s", "a[3]", "a", "3", "s", "flg=True", "flg", "True", "if flg:\n print(\"Yes\")\nelse:\n print(\"No\")", "flg", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "a=[\"N\",\"W\",\"S\",\"E\"]", "[\"N\",\"W\",\"S\",\"E\"]", "a", "flg=True", "True", "flg", "flg=False", "False", "flg", "flg=True", "True", "flg", "s=input()", "input()", "s", "flg=True", "True", "flg", "ss=set(s)", "set(s)", "ss" ]
s=input() ss=set(s) a=["N","W","S","E"] flg=False if all(a[i] in s for i in range(4)): flg=True if a[0] in s and a[1] not in s and a[2] in s and a[3] not in s: flg=True if a[0] not in s and a[1] in s and a[2] not in s and a[3] in s: flg=True if flg: print("Yes") else: print("No")
[ 7, 0, 13, 4, 18, 4, 13, 13, 0, 13, 21, 22, 17, 17, 22, 17, 17, 22, 17, 17, 22, 17, 17, 28, 13, 4, 13, 4, 13, 13, 0, 18, 13, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 21, 13, 10, 4, 13 ]
[ [ 128, 2 ], [ 125, 9 ], [ 25, 24 ], [ 129, 29 ], [ 36, 31 ], [ 126, 32 ], [ 129, 34 ], [ 24, 35 ], [ 126, 41 ], [ 126, 46 ], [ 126, 54 ], [ 126, 59 ], [ 126, 65 ], [ 126, 70 ], [ 126, 83 ], [ 126, 88 ], [ 126, 96 ], [ 126, 101 ], [ 126, 107 ], [ 126, 112 ], [ 125, 126 ], [ 128, 129 ] ]
[ "S = input().strip()\nC = {\"N\":0,\"S\":0,\"E\":0,\"W\":0}\nfor i in range(len(S)):\n C[S[i]] += 1\nif C[\"N\"]>0 and C[\"S\"]>0:\n if (C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0):\n print(\"Yes\")\n else:\n print(\"No\")\nelif C[\"N\"]==0 and C[\"S\"]==0:\n if (C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0):\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "S = input().strip()", "S", "input().strip()", "().strip", "()", "input", "strip", "C = {\"N\":0,\"S\":0,\"E\":0,\"W\":0}", "C", "{\"N\":0,\"S\":0,\"E\":0,\"W\":0}", "\"N\"", "\"N\"", "0", "\"S\"", "\"S\"", "0", "\"E\"", "\"E\"", "0", "\"W\"", "\"W\"", "0", "for i in range(len(S)):\n C[S[i]] += 1", "i", "range(len(S))", "range", "len(S)", "len", "S", "C[S[i]] += 1", "C[S[i]]", "C", "S[i]", "S", "i", "1", "if C[\"N\"]>0 and C[\"S\"]>0:\n if (C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0):\n print(\"Yes\")\n else:\n print(\"No\")\nelif C[\"N\"]==0 and C[\"S\"]==0:\n if (C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0):\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "C[\"N\"]>0 and C[\"S\"]>0", "C[\"N\"]>0", "C[\"N\"]", "C", "\"N\"", "0", "C[\"S\"]>0", "C[\"S\"]", "C", "\"S\"", "0", "if (C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0):\n print(\"Yes\")\n else:\n print(\"No\")", "(C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0)", "C[\"E\"]>0 and C[\"W\"]>0", "C[\"E\"]>0", "C[\"E\"]", "C", "\"E\"", "0", "C[\"W\"]>0", "C[\"W\"]", "C", "\"W\"", "0", "C[\"E\"]==0 and C[\"W\"]==0", "C[\"E\"]==0", "C[\"E\"]", "C", "\"E\"", "0", "C[\"W\"]==0", "C[\"W\"]", "C", "\"W\"", "0", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif C[\"N\"]==0 and C[\"S\"]==0:\n if (C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0):\n print(\"Yes\")\n else:\n print(\"No\")", "C[\"N\"]==0 and C[\"S\"]==0", "C[\"N\"]==0", "C[\"N\"]", "C", "\"N\"", "0", "C[\"S\"]==0", "C[\"S\"]", "C", "\"S\"", "0", "if (C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0):\n print(\"Yes\")\n else:\n print(\"No\")", "(C[\"E\"]>0 and C[\"W\"]>0) or (C[\"E\"]==0 and C[\"W\"]==0)", "C[\"E\"]>0 and C[\"W\"]>0", "C[\"E\"]>0", "C[\"E\"]", "C", "\"E\"", "0", "C[\"W\"]>0", "C[\"W\"]", "C", "\"W\"", "0", "C[\"E\"]==0 and C[\"W\"]==0", "C[\"E\"]==0", "C[\"E\"]", "C", "\"E\"", "0", "C[\"W\"]==0", "C[\"W\"]", "C", "\"W\"", "0", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "C = {\"N\":0,\"S\":0,\"E\":0,\"W\":0}", "{\"N\":0,\"S\":0,\"E\":0,\"W\":0}", "C", "S = input().strip()", "input().strip()", "S" ]
S = input().strip() C = {"N":0,"S":0,"E":0,"W":0} for i in range(len(S)): C[S[i]] += 1 if C["N"]>0 and C["S"]>0: if (C["E"]>0 and C["W"]>0) or (C["E"]==0 and C["W"]==0): print("Yes") else: print("No") elif C["N"]==0 and C["S"]==0: if (C["E"]>0 and C["W"]>0) or (C["E"]==0 and C["W"]==0): print("Yes") else: print("No") else: print("No")
[ 7, 15, 13, 0, 13, 4, 13, 4, 13, 4, 13, 0, 13, 4, 18, 13, 13, 13, 14, 2, 2, 18, 13, 17, 17, 40, 18, 13, 17, 17, 4, 13, 17, 14, 2, 40, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 14, 2, 2, 18, 13, 17, 17, 40, 18, 13, 17, 17, 4, 13, 17, 14, 2, 40, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 85, 4 ], [ 82, 12 ], [ 86, 17 ], [ 83, 22 ], [ 83, 27 ], [ 83, 37 ], [ 83, 42 ], [ 83, 52 ], [ 83, 57 ], [ 83, 67 ], [ 83, 72 ], [ 82, 83 ], [ 85, 86 ] ]
[ "import collections\nS=list(str(input()))\ncc=collections.Counter(S)\n\nif cc['S']==0 and cc['N']!=0:\n print('No')\nelif cc['S']!=0 and cc['N']==0:\n print('No')\nelif cc['E']==0 and cc['W']!=0:\n print('No')\nelif cc['E']!=0 and cc['W']==0:\n print('No')\nelse:\n print('Yes')", "import collections", "collections", "S=list(str(input()))", "S", "list(str(input()))", "list", "str(input())", "str", "input()", "input", "cc=collections.Counter(S)", "cc", "collections.Counter(S)", "collections.Counter", "collections", "Counter", "S", "if cc['S']==0 and cc['N']!=0:\n print('No')\nelif cc['S']!=0 and cc['N']==0:\n print('No')\nelif cc['E']==0 and cc['W']!=0:\n print('No')\nelif cc['E']!=0 and cc['W']==0:\n print('No')\nelse:\n print('Yes')", "cc['S']==0 and cc['N']!=0", "cc['S']==0", "cc['S']", "cc", "'S'", "0", "cc['N']!=0", "cc['N']", "cc", "'N'", "0", "print('No')", "print", "'No'", "elif cc['S']!=0 and cc['N']==0:\n print('No')", "cc['S']!=0 and cc['N']==0", "cc['S']!=0", "cc['S']", "cc", "'S'", "0", "cc['N']==0", "cc['N']", "cc", "'N'", "0", "print('No')", "print", "'No'", "elif cc['E']==0 and cc['W']!=0:\n print('No')", "cc['E']==0 and cc['W']!=0", "cc['E']==0", "cc['E']", "cc", "'E'", "0", "cc['W']!=0", "cc['W']", "cc", "'W'", "0", "print('No')", "print", "'No'", "elif cc['E']!=0 and cc['W']==0:\n print('No')", "cc['E']!=0 and cc['W']==0", "cc['E']!=0", "cc['E']", "cc", "'E'", "0", "cc['W']==0", "cc['W']", "cc", "'W'", "0", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "cc=collections.Counter(S)", "collections.Counter(S)", "cc", "S=list(str(input()))", "list(str(input()))", "S" ]
import collections S=list(str(input())) cc=collections.Counter(S) if cc['S']==0 and cc['N']!=0: print('No') elif cc['S']!=0 and cc['N']==0: print('No') elif cc['E']==0 and cc['W']!=0: print('No') elif cc['E']!=0 and cc['W']==0: print('No') else: print('Yes')
[ 7, 12, 13, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 4, 13, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 9, 8 ], [ 4, 11 ], [ 16, 15 ], [ 4, 18 ], [ 23, 22 ], [ 4, 25 ], [ 30, 29 ], [ 4, 32 ], [ 8, 39 ], [ 22, 42 ], [ 8, 46 ], [ 22, 49 ], [ 15, 55 ], [ 29, 58 ], [ 15, 62 ], [ 29, 65 ], [ 83, 80 ] ]
[ "def main():\n s = input()\n\n n_cnt = s.count(\"N\")\n w_cnt = s.count(\"W\")\n s_cnt = s.count(\"S\")\n e_cnt = s.count(\"E\")\n\n if (n_cnt == 0 and s_cnt == 0) or (n_cnt > 0 and s_cnt > 0):\n if (w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0):\n print(\"Yes\")\n exit()\n\n print(\"No\")\n\n\nif __name__ == \"__main__\":\n main()", "def main():\n s = input()\n\n n_cnt = s.count(\"N\")\n w_cnt = s.count(\"W\")\n s_cnt = s.count(\"S\")\n e_cnt = s.count(\"E\")\n\n if (n_cnt == 0 and s_cnt == 0) or (n_cnt > 0 and s_cnt > 0):\n if (w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0):\n print(\"Yes\")\n exit()\n\n print(\"No\")", "main", "s = input()", "s", "input()", "input", "n_cnt = s.count(\"N\")", "n_cnt", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "w_cnt = s.count(\"W\")", "w_cnt", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "s_cnt = s.count(\"S\")", "s_cnt", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "e_cnt = s.count(\"E\")", "e_cnt", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "if (n_cnt == 0 and s_cnt == 0) or (n_cnt > 0 and s_cnt > 0):\n if (w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0):\n print(\"Yes\")\n exit()\n\n ", "(n_cnt == 0 and s_cnt == 0) or (n_cnt > 0 and s_cnt > 0)", "n_cnt == 0 and s_cnt == 0", "n_cnt == 0", "n_cnt", "0", "s_cnt == 0", "s_cnt", "0", "n_cnt > 0 and s_cnt > 0", "n_cnt > 0", "n_cnt", "0", "s_cnt > 0", "s_cnt", "0", "if (w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0):\n print(\"Yes\")\n exit()\n\n ", "(w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0)", "w_cnt == 0 and e_cnt == 0", "w_cnt == 0", "w_cnt", "0", "e_cnt == 0", "e_cnt", "0", "w_cnt > 0 and e_cnt > 0", "w_cnt > 0", "w_cnt", "0", "e_cnt > 0", "e_cnt", "0", "print(\"Yes\")", "print", "\"Yes\"", "exit()", "exit", "print(\"No\")", "print", "\"No\"", "if __name__ == \"__main__\":\n main()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "def main():\n s = input()\n\n n_cnt = s.count(\"N\")\n w_cnt = s.count(\"W\")\n s_cnt = s.count(\"S\")\n e_cnt = s.count(\"E\")\n\n if (n_cnt == 0 and s_cnt == 0) or (n_cnt > 0 and s_cnt > 0):\n if (w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0):\n print(\"Yes\")\n exit()\n\n print(\"No\")", "def main():\n s = input()\n\n n_cnt = s.count(\"N\")\n w_cnt = s.count(\"W\")\n s_cnt = s.count(\"S\")\n e_cnt = s.count(\"E\")\n\n if (n_cnt == 0 and s_cnt == 0) or (n_cnt > 0 and s_cnt > 0):\n if (w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0):\n print(\"Yes\")\n exit()\n\n print(\"No\")", "main" ]
def main(): s = input() n_cnt = s.count("N") w_cnt = s.count("W") s_cnt = s.count("S") e_cnt = s.count("E") if (n_cnt == 0 and s_cnt == 0) or (n_cnt > 0 and s_cnt > 0): if (w_cnt == 0 and e_cnt == 0) or (w_cnt > 0 and e_cnt > 0): print("Yes") exit() print("No") if __name__ == "__main__": main()
[ 7, 0, 13, 4, 13, 14, 2, 2, 2, 2, 2, 2, 17, 13, 2, 17, 13, 40, 2, 17, 13, 40, 2, 17, 13, 2, 2, 2, 2, 17, 13, 2, 17, 13, 40, 2, 17, 13, 40, 2, 17, 13, 2, 2, 2, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 64, 2 ], [ 65, 13 ], [ 65, 16 ], [ 65, 20 ], [ 65, 24 ], [ 65, 30 ], [ 65, 33 ], [ 65, 37 ], [ 65, 41 ], [ 65, 47 ], [ 65, 50 ], [ 65, 53 ], [ 65, 56 ], [ 64, 65 ] ]
[ "s = input()\n\nif (\n (('N' in s) and ('S' in s) and (not 'W' in s) and (not 'E' in s)) or\n (('W' in s) and ('E' in s) and (not 'N' in s) and (not 'S' in s)) or\n (('N' in s) and ('S' in s) and ('W' in s) and ('E' in s))\n):\n print('Yes')\nelse:\n print('No')", "s = input()", "s", "input()", "input", "if (\n (('N' in s) and ('S' in s) and (not 'W' in s) and (not 'E' in s)) or\n (('W' in s) and ('E' in s) and (not 'N' in s) and (not 'S' in s)) or\n (('N' in s) and ('S' in s) and ('W' in s) and ('E' in s))\n):\n print('Yes')\nelse:\n print('No')", "(('N' in s) and ('S' in s) and (not 'W' in s) and (not 'E' in s)) or\n (('W' in s) and ('E' in s) and (not 'N' in s) and (not 'S' in s)) or\n (('N' in s) and ('S' in s) and ('W' in s) and ('E' in s))", "(('N' in s) and ('S' in s) and (not 'W' in s) and (not 'E' in s)) or\n (('W' in s) and ('E' in s) and (not 'N' in s) and (not 'S' in s))", "('N' in s) and ('S' in s) and (not 'W' in s) and (not 'E' in s)", "('N' in s) and ('S' in s) and (not 'W' in s)", "('N' in s) and ('S' in s)", "'N' in s", "'N'", "s", "'S' in s", "'S'", "s", "not 'W' in s", "'W' in s", "'W'", "s", "not 'E' in s", "'E' in s", "'E'", "s", "('W' in s) and ('E' in s) and (not 'N' in s) and (not 'S' in s)", "('W' in s) and ('E' in s) and (not 'N' in s)", "('W' in s) and ('E' in s)", "'W' in s", "'W'", "s", "'E' in s", "'E'", "s", "not 'N' in s", "'N' in s", "'N'", "s", "not 'S' in s", "'S' in s", "'S'", "s", "('N' in s) and ('S' in s) and ('W' in s) and ('E' in s)", "('N' in s) and ('S' in s) and ('W' in s)", "('N' in s) and ('S' in s)", "'N' in s", "'N'", "s", "'S' in s", "'S'", "s", "'W' in s", "'W'", "s", "'E' in s", "'E'", "s", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "s = input()", "input()", "s" ]
s = input() if ( (('N' in s) and ('S' in s) and (not 'W' in s) and (not 'E' in s)) or (('W' in s) and ('E' in s) and (not 'N' in s) and (not 'S' in s)) or (('N' in s) and ('S' in s) and ('W' in s) and ('E' in s)) ): print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 39, 17, 17, 13, 39, 17, 17, 0, 13, 17, 13, 17, 28, 13, 13, 14, 2, 13, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 13, 0, 13, 17, 14, 2, 40, 13, 17, 40, 13, 17, 4, 13, 17, 14, 2, 40, 13, 17, 2, 13, 17, 4, 13, 17, 14, 2, 2, 13, 17, 40, 13, 17, 4, 13, 17, 4, 13, 17, 10, 39, 13, 10, 4, 13, 10, 39, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 81, 2 ], [ 84, 8 ], [ 78, 12 ], [ 90, 17 ], [ 87, 19 ], [ 23, 22 ], [ 85, 22 ], [ 22, 26 ], [ 82, 27 ], [ 93, 29 ], [ 33, 32 ], [ 79, 32 ], [ 32, 36 ], [ 82, 37 ], [ 96, 39 ], [ 94, 44 ], [ 91, 44 ], [ 97, 47 ], [ 88, 47 ], [ 94, 55 ], [ 91, 55 ], [ 97, 58 ], [ 88, 58 ], [ 94, 66 ], [ 91, 66 ], [ 97, 69 ], [ 88, 69 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 96, 97 ] ]
[ "S = str(input())\nvertical,side = ['N', 'S'], ['W', 'E']\n\nans1,ans2 = 0,0\n\nfor l in vertical:\n if l in S:\n ans1 += 1\nfor l in side:\n if l in S:\n ans2 += 1\nif ans1 >= 2 and ans2 >= 2:\n print('Yes')\nelif ans1 >= 2 and ans2 == 0:\n print('Yes')\nelif ans1 == 0 and ans2 >= 2:\n print('Yes')\nelse:\n print('No')", "S = str(input())", "S", "str(input())", "str", "input()", "input", "vertical,side = ['N', 'S'], ['W', 'E']", "vertical", "['N', 'S']", "'N'", "'S'", "side", "['W', 'E']", "'W'", "'E'", "ans1,ans2 = 0,0", "ans1", "0", "ans2", "0", "for l in vertical:\n if l in S:\n ans1 += 1", "l", "vertical", "if l in S:\n ans1 += 1", "l in S", "l", "S", "ans1 += 1", "ans1", "1", "for l in side:\n if l in S:\n ans2 += 1", "l", "side", "if l in S:\n ans2 += 1", "l in S", "l", "S", "ans2 += 1", "ans2", "1", "if ans1 >= 2 and ans2 >= 2:\n print('Yes')\nelif ans1 >= 2 and ans2 == 0:\n print('Yes')\nelif ans1 == 0 and ans2 >= 2:\n print('Yes')\nelse:\n print('No')", "ans1 >= 2 and ans2 >= 2", "ans1 >= 2", "ans1", "2", "ans2 >= 2", "ans2", "2", "print('Yes')", "print", "'Yes'", "elif ans1 >= 2 and ans2 == 0:\n print('Yes')", "ans1 >= 2 and ans2 == 0", "ans1 >= 2", "ans1", "2", "ans2 == 0", "ans2", "0", "print('Yes')", "print", "'Yes'", "elif ans1 == 0 and ans2 >= 2:\n print('Yes')", "ans1 == 0 and ans2 >= 2", "ans1 == 0", "ans1", "0", "ans2 >= 2", "ans2", "2", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "side = ['N', 'S'], ['W', 'E']", "['W', 'E']", "side", "S = str(input())", "str(input())", "S", "vertical,side = ['N', 'S'], ['W', 'E']", "['N', 'S']", "vertical", "ans2 = 0,0", "0", "ans2", "ans1,ans2 = 0,0", "0", "ans1", "ans1 += 1", "1", "ans1", "ans2 += 1", "1", "ans2" ]
S = str(input()) vertical,side = ['N', 'S'], ['W', 'E'] ans1,ans2 = 0,0 for l in vertical: if l in S: ans1 += 1 for l in side: if l in S: ans2 += 1 if ans1 >= 2 and ans2 >= 2: print('Yes') elif ans1 >= 2 and ans2 == 0: print('Yes') elif ans1 == 0 and ans2 >= 2: print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 53, 2 ], [ 54, 9 ], [ 54, 12 ], [ 54, 20 ], [ 54, 23 ], [ 54, 31 ], [ 54, 34 ], [ 54, 42 ], [ 54, 45 ], [ 53, 54 ] ]
[ "s = input()\nif 'N' in s and 'S' not in s:\n print('No')\nelif 'S' in s and 'N' not in s:\n print('No')\nelif 'W' in s and 'E' not in s:\n print('No')\nelif 'E' in s and 'W' not in s:\n print('No')\nelse:\n print('Yes')", "s = input()", "s", "input()", "input", "if 'N' in s and 'S' not in s:\n print('No')\nelif 'S' in s and 'N' not in s:\n print('No')\nelif 'W' in s and 'E' not in s:\n print('No')\nelif 'E' in s and 'W' not in s:\n print('No')\nelse:\n print('Yes')", "'N' in s and 'S' not in s", "'N' in s", "'N'", "s", "'S' not in s", "'S'", "s", "print('No')", "print", "'No'", "elif 'S' in s and 'N' not in s:\n print('No')", "'S' in s and 'N' not in s", "'S' in s", "'S'", "s", "'N' not in s", "'N'", "s", "print('No')", "print", "'No'", "elif 'W' in s and 'E' not in s:\n print('No')", "'W' in s and 'E' not in s", "'W' in s", "'W'", "s", "'E' not in s", "'E'", "s", "print('No')", "print", "'No'", "elif 'E' in s and 'W' not in s:\n print('No')", "'E' in s and 'W' not in s", "'E' in s", "'E'", "s", "'W' not in s", "'W'", "s", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "s = input()", "input()", "s" ]
s = input() if 'N' in s and 'S' not in s: print('No') elif 'S' in s and 'N' not in s: print('No') elif 'W' in s and 'E' not in s: print('No') elif 'E' in s and 'W' not in s: print('No') else: print('Yes')
[ 7, 0, 13, 4, 13, 14, 2, 2, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 4, 13, 17, 14, 2, 2, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 4, 13, 17, 14, 2, 2, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 114, 2 ], [ 115, 12 ], [ 115, 19 ], [ 115, 26 ], [ 115, 33 ], [ 115, 47 ], [ 115, 54 ], [ 115, 61 ], [ 115, 68 ], [ 115, 82 ], [ 115, 89 ], [ 115, 96 ], [ 115, 103 ], [ 114, 115 ] ]
[ "s=input()\nif s.count(\"N\")>0 and s.count(\"W\")>0 and s.count(\"S\")>0 and s.count(\"E\")>0:\n print(\"Yes\")\nelif s.count(\"N\")==0 and s.count(\"W\")>0 and s.count(\"S\")==0 and s.count(\"E\")>0:\n print(\"Yes\")\nelif s.count(\"N\")>0 and s.count(\"W\")==0 and s.count(\"S\")>0 and s.count(\"E\")==0:\n print(\"Yes\")\nelse:\n print(\"No\")\n", "s=input()", "s", "input()", "input", "if s.count(\"N\")>0 and s.count(\"W\")>0 and s.count(\"S\")>0 and s.count(\"E\")>0:\n print(\"Yes\")\nelif s.count(\"N\")==0 and s.count(\"W\")>0 and s.count(\"S\")==0 and s.count(\"E\")>0:\n print(\"Yes\")\nelif s.count(\"N\")>0 and s.count(\"W\")==0 and s.count(\"S\")>0 and s.count(\"E\")==0:\n print(\"Yes\")\nelse:\n print(\"No\")", "s.count(\"N\")>0 and s.count(\"W\")>0 and s.count(\"S\")>0 and s.count(\"E\")>0", "s.count(\"N\")>0 and s.count(\"W\")>0 and s.count(\"S\")>0", "s.count(\"N\")>0 and s.count(\"W\")>0", "s.count(\"N\")>0", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "0", "s.count(\"W\")>0", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "0", "s.count(\"S\")>0", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "0", "s.count(\"E\")>0", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "0", "print(\"Yes\")", "print", "\"Yes\"", "elif s.count(\"N\")==0 and s.count(\"W\")>0 and s.count(\"S\")==0 and s.count(\"E\")>0:\n print(\"Yes\")", "s.count(\"N\")==0 and s.count(\"W\")>0 and s.count(\"S\")==0 and s.count(\"E\")>0", "s.count(\"N\")==0 and s.count(\"W\")>0 and s.count(\"S\")==0", "s.count(\"N\")==0 and s.count(\"W\")>0", "s.count(\"N\")==0", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "0", "s.count(\"W\")>0", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "0", "s.count(\"S\")==0", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "0", "s.count(\"E\")>0", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "0", "print(\"Yes\")", "print", "\"Yes\"", "elif s.count(\"N\")>0 and s.count(\"W\")==0 and s.count(\"S\")>0 and s.count(\"E\")==0:\n print(\"Yes\")", "s.count(\"N\")>0 and s.count(\"W\")==0 and s.count(\"S\")>0 and s.count(\"E\")==0", "s.count(\"N\")>0 and s.count(\"W\")==0 and s.count(\"S\")>0", "s.count(\"N\")>0 and s.count(\"W\")==0", "s.count(\"N\")>0", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "0", "s.count(\"W\")==0", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "0", "s.count(\"S\")>0", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "0", "s.count(\"E\")==0", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "0", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "s=input()", "input()", "s" ]
s=input() if s.count("N")>0 and s.count("W")>0 and s.count("S")>0 and s.count("E")>0: print("Yes") elif s.count("N")==0 and s.count("W")>0 and s.count("S")==0 and s.count("E")>0: print("Yes") elif s.count("N")>0 and s.count("W")==0 and s.count("S")>0 and s.count("E")==0: print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 14, 2, 2, 2, 17, 13, 2, 17, 13, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 28, 2 ], [ 29, 10 ], [ 29, 13 ], [ 29, 17 ], [ 29, 20 ], [ 28, 29 ] ]
[ "S = input()\nif ('N' in S) == ('S' in S) and ('W' in S) == ('E' in S):\n print(\"Yes\")\nelse:\n print(\"No\")", "S = input()", "S", "input()", "input", "if ('N' in S) == ('S' in S) and ('W' in S) == ('E' in S):\n print(\"Yes\")\nelse:\n print(\"No\")", "('N' in S) == ('S' in S) and ('W' in S) == ('E' in S)", "('N' in S) == ('S' in S)", "'N' in S", "'N'", "S", "'S' in S", "'S'", "S", "('W' in S) == ('E' in S)", "'W' in S", "'W'", "S", "'E' in S", "'E'", "S", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "S = input()", "input()", "S" ]
S = input() if ('N' in S) == ('S' in S) and ('W' in S) == ('E' in S): print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 4, 18, 13, 13, 13, 14, 2, 2, 2, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 2, 2, 17, 13, 40, 17, 13, 4, 13, 17, 4, 13, 17, 10, 39, 13, 10, 4, 13 ]
[ [ 58, 2 ], [ 55, 6 ], [ 10, 9 ], [ 59, 9 ], [ 56, 13 ], [ 9, 15 ], [ 56, 23 ], [ 56, 26 ], [ 56, 30 ], [ 56, 33 ], [ 56, 37 ], [ 56, 40 ], [ 56, 44 ], [ 56, 47 ], [ 55, 56 ], [ 58, 59 ] ]
[ "S=input()\nA=[]\nfor letter in S:\n A.append(letter)\nif ('N' in A and 'S' not in A) or ('S' in A and 'N' not in A) or ('E' in A and 'W' not in A)or ('W' in A and 'E' not in A):\n print('No')\nelse:\n print('Yes')", "S=input()", "S", "input()", "input", "A=[]", "A", "[]", "for letter in S:\n A.append(letter)", "letter", "S", "A.append(letter)", "A.append", "A", "append", "letter", "if ('N' in A and 'S' not in A) or ('S' in A and 'N' not in A) or ('E' in A and 'W' not in A)or ('W' in A and 'E' not in A):\n print('No')\nelse:\n print('Yes')", "('N' in A and 'S' not in A) or ('S' in A and 'N' not in A) or ('E' in A and 'W' not in A)or ('W' in A and 'E' not in A)", "('N' in A and 'S' not in A) or ('S' in A and 'N' not in A) or ('E' in A and 'W' not in A)", "('N' in A and 'S' not in A) or ('S' in A and 'N' not in A)", "'N' in A and 'S' not in A", "'N' in A", "'N'", "A", "'S' not in A", "'S'", "A", "'S' in A and 'N' not in A", "'S' in A", "'S'", "A", "'N' not in A", "'N'", "A", "'E' in A and 'W' not in A", "'E' in A", "'E'", "A", "'W' not in A", "'W'", "A", "'W' in A and 'E' not in A", "'W' in A", "'W'", "A", "'E' not in A", "'E'", "A", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "A=[]", "[]", "A", "S=input()", "input()", "S" ]
S=input() A=[] for letter in S: A.append(letter) if ('N' in A and 'S' not in A) or ('S' in A and 'N' not in A) or ('E' in A and 'W' not in A)or ('W' in A and 'E' not in A): print('No') else: print('Yes')
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 106, 2 ], [ 109, 6 ], [ 107, 9 ], [ 112, 13 ], [ 107, 16 ], [ 103, 20 ], [ 107, 23 ], [ 115, 27 ], [ 107, 30 ], [ 110, 36 ], [ 104, 39 ], [ 116, 44 ], [ 113, 47 ], [ 116, 55 ], [ 113, 58 ], [ 110, 69 ], [ 104, 72 ], [ 116, 77 ], [ 113, 80 ], [ 116, 88 ], [ 113, 91 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ] ]
[ "s=input()\nN=s.count(\"N\")\nW=s.count(\"W\")\nS=s.count(\"S\")\nE=s.count(\"E\")\nif N==0 and S==0:\n if E==0 and W==0:\n print(\"Yes\")\n elif E>0 and W>0:\n print(\"Yes\")\n else:\n print(\"No\")\nelif N>0 and S>0:\n if E==0 and W==0:\n print(\"Yes\")\n elif E>0 and W>0:\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "s=input()", "s", "input()", "input", "N=s.count(\"N\")", "N", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "W=s.count(\"W\")", "W", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "S=s.count(\"S\")", "S", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "E=s.count(\"E\")", "E", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "if N==0 and S==0:\n if E==0 and W==0:\n print(\"Yes\")\n elif E>0 and W>0:\n print(\"Yes\")\n else:\n print(\"No\")\nelif N>0 and S>0:\n if E==0 and W==0:\n print(\"Yes\")\n elif E>0 and W>0:\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "N==0 and S==0", "N==0", "N", "0", "S==0", "S", "0", "if E==0 and W==0:\n print(\"Yes\")\n elif E>0 and W>0:\n print(\"Yes\")\n else:\n print(\"No\")", "E==0 and W==0", "E==0", "E", "0", "W==0", "W", "0", "print(\"Yes\")", "print", "\"Yes\"", "elif E>0 and W>0:\n print(\"Yes\")\n ", "E>0 and W>0", "E>0", "E", "0", "W>0", "W", "0", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif N>0 and S>0:\n if E==0 and W==0:\n print(\"Yes\")\n elif E>0 and W>0:\n print(\"Yes\")\n else:\n print(\"No\")", "N>0 and S>0", "N>0", "N", "0", "S>0", "S", "0", "if E==0 and W==0:\n print(\"Yes\")\n elif E>0 and W>0:\n print(\"Yes\")\n else:\n print(\"No\")", "E==0 and W==0", "E==0", "E", "0", "W==0", "W", "0", "print(\"Yes\")", "print", "\"Yes\"", "elif E>0 and W>0:\n print(\"Yes\")\n ", "E>0 and W>0", "E>0", "E", "0", "W>0", "W", "0", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "S=s.count(\"S\")", "s.count(\"S\")", "S", "s=input()", "input()", "s", "N=s.count(\"N\")", "s.count(\"N\")", "N", "W=s.count(\"W\")", "s.count(\"W\")", "W", "E=s.count(\"E\")", "s.count(\"E\")", "E" ]
s=input() N=s.count("N") W=s.count("W") S=s.count("S") E=s.count("E") if N==0 and S==0: if E==0 and W==0: print("Yes") elif E>0 and W>0: print("Yes") else: print("No") elif N>0 and S>0: if E==0 and W==0: print("Yes") elif E>0 and W>0: print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 8, 2, 2, 2, 13, 4, 13, 17, 2, 13, 4, 13, 17, 2, 13, 4, 13, 17, 17, 17, 10, 4, 13 ]
[ [ 30, 2 ], [ 31, 13 ], [ 31, 18 ], [ 31, 23 ], [ 30, 31 ] ]
[ "a = set(input())\nprint(\"Yes\" if a == set(\"NEWS\") or a == set(\"NS\") or a == set(\"EW\") else \"No\")", "a = set(input())", "a", "set(input())", "set", "input()", "input", "print(\"Yes\" if a == set(\"NEWS\") or a == set(\"NS\") or a == set(\"EW\") else \"No\")", "print", "\"Yes\" if a == set(\"NEWS\") or a == set(\"NS\") or a == set(\"EW\") else \"No\"", "a == set(\"NEWS\") or a == set(\"NS\") or a == set(\"EW\")", "a == set(\"NEWS\") or a == set(\"NS\")", "a == set(\"NEWS\")", "a", "set(\"NEWS\")", "set", "\"NEWS\"", "a == set(\"NS\")", "a", "set(\"NS\")", "set", "\"NS\"", "a == set(\"EW\")", "a", "set(\"EW\")", "set", "\"EW\"", "\"Yes\"", "\"No\"", "a = set(input())", "set(input())", "a" ]
a = set(input()) print("Yes" if a == set("NEWS") or a == set("NS") or a == set("EW") else "No")
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 97, 2 ], [ 94, 6 ], [ 98, 9 ], [ 100, 13 ], [ 98, 16 ], [ 88, 20 ], [ 98, 23 ], [ 91, 27 ], [ 98, 30 ], [ 95, 40 ], [ 101, 43 ], [ 89, 46 ], [ 92, 49 ], [ 95, 55 ], [ 101, 58 ], [ 89, 61 ], [ 92, 64 ], [ 95, 70 ], [ 101, 73 ], [ 89, 76 ], [ 92, 79 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ] ]
[ "t = input()\nn = t.count('N')\ns = t.count('S')\nw = t.count('W')\ne = t.count('E')\n\nif (n>0 and s>0 and w>0 and e>0)or(n==0 and s==0 and w>0 and e>0) or (n>0 and s>0 and w==0 and e==0):\n print('Yes')\nelse:\n print('No')", "t = input()", "t", "input()", "input", "n = t.count('N')", "n", "t.count('N')", "t.count", "t", "count", "'N'", "s = t.count('S')", "s", "t.count('S')", "t.count", "t", "count", "'S'", "w = t.count('W')", "w", "t.count('W')", "t.count", "t", "count", "'W'", "e = t.count('E')", "e", "t.count('E')", "t.count", "t", "count", "'E'", "if (n>0 and s>0 and w>0 and e>0)or(n==0 and s==0 and w>0 and e>0) or (n>0 and s>0 and w==0 and e==0):\n print('Yes')\nelse:\n print('No')", "(n>0 and s>0 and w>0 and e>0)or(n==0 and s==0 and w>0 and e>0) or (n>0 and s>0 and w==0 and e==0)", "(n>0 and s>0 and w>0 and e>0)or(n==0 and s==0 and w>0 and e>0)", "n>0 and s>0 and w>0 and e>0", "n>0 and s>0 and w>0", "n>0 and s>0", "n>0", "n", "0", "s>0", "s", "0", "w>0", "w", "0", "e>0", "e", "0", "n==0 and s==0 and w>0 and e>0", "n==0 and s==0 and w>0", "n==0 and s==0", "n==0", "n", "0", "s==0", "s", "0", "w>0", "w", "0", "e>0", "e", "0", "n>0 and s>0 and w==0 and e==0", "n>0 and s>0 and w==0", "n>0 and s>0", "n>0", "n", "0", "s>0", "s", "0", "w==0", "w", "0", "e==0", "e", "0", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "w = t.count('W')", "t.count('W')", "w", "e = t.count('E')", "t.count('E')", "e", "n = t.count('N')", "t.count('N')", "n", "t = input()", "input()", "t", "s = t.count('S')", "t.count('S')", "s" ]
t = input() n = t.count('N') s = t.count('S') w = t.count('W') e = t.count('E') if (n>0 and s>0 and w>0 and e>0)or(n==0 and s==0 and w>0 and e>0) or (n>0 and s>0 and w==0 and e==0): print('Yes') else: print('No')
[ 7, 15, 13, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 4, 18, 13, 13, 0, 13, 17, 14, 2, 2, 4, 13, 13, 17, 17, 14, 2, 2, 4, 13, 13, 17, 17, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 4, 13, 13, 17, 17, 0, 13, 17, 4, 13, 8, 2, 13, 17, 17, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 92, 4 ], [ 101, 10 ], [ 93, 15 ], [ 102, 18 ], [ 98, 21 ], [ 102, 28 ], [ 102, 36 ], [ 102, 43 ], [ 102, 48 ], [ 95, 52 ], [ 102, 58 ], [ 102, 63 ], [ 89, 67 ], [ 102, 74 ], [ 104, 78 ], [ 105, 84 ], [ 90, 84 ], [ 96, 84 ], [ 99, 84 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ] ]
[ "import collections\nS=str(input())\n\nList=list(set(S))\nList.sort()\n\nflag=0\nif len(List)%2==0:\n if len(List)//2==1:\n if List[0]==\"E\" and List[1]==\"W\":\n flag=1\n elif List[0]==\"N\" and List[1]==\"S\":\n flag=1\n elif len(List)//2==2:\n flag=1\n \nprint(\"Yes\" if flag==1 else \"No\")", "import collections", "collections", "S=str(input())", "S", "str(input())", "str", "input()", "input", "List=list(set(S))", "List", "list(set(S))", "list", "set(S)", "set", "S", "List.sort()", "List.sort", "List", "sort", "flag=0", "flag", "0", "if len(List)%2==0:\n if len(List)//2==1:\n if List[0]==\"E\" and List[1]==\"W\":\n flag=1\n elif List[0]==\"N\" and List[1]==\"S\":\n flag=1\n elif len(List)//2==2:\n flag=1\n ", "len(List)%2==0", "len(List)%2", "len(List)", "len", "List", "2", "0", "if len(List)//2==1:\n if List[0]==\"E\" and List[1]==\"W\":\n flag=1\n elif List[0]==\"N\" and List[1]==\"S\":\n flag=1\n elif len(List)//2==2:\n flag=1\n ", "len(List)//2==1", "len(List)//2", "len(List)", "len", "List", "2", "1", "if List[0]==\"E\" and List[1]==\"W\":\n flag=1\n elif List[0]==\"N\" and List[1]==\"S\":\n flag=1\n ", "List[0]==\"E\" and List[1]==\"W\"", "List[0]==\"E\"", "List[0]", "List", "0", "\"E\"", "List[1]==\"W\"", "List[1]", "List", "1", "\"W\"", "flag=1", "flag", "1", "elif List[0]==\"N\" and List[1]==\"S\":\n flag=1\n ", "List[0]==\"N\" and List[1]==\"S\"", "List[0]==\"N\"", "List[0]", "List", "0", "\"N\"", "List[1]==\"S\"", "List[1]", "List", "1", "\"S\"", "flag=1", "flag", "1", "elif len(List)//2==2:\n flag=1\n ", "len(List)//2==2", "len(List)//2", "len(List)", "len", "List", "2", "2", "flag=1", "flag", "1", "print(\"Yes\" if flag==1 else \"No\")", "print", "\"Yes\" if flag==1 else \"No\"", "flag==1", "flag", "1", "\"Yes\"", "\"No\"", "flag=1", "1", "flag", "S=str(input())", "str(input())", "S", "flag=1", "1", "flag", "flag=0", "0", "flag", "List=list(set(S))", "list(set(S))", "List", "flag=1", "1", "flag" ]
import collections S=str(input()) List=list(set(S)) List.sort() flag=0 if len(List)%2==0: if len(List)//2==1: if List[0]=="E" and List[1]=="W": flag=1 elif List[0]=="N" and List[1]=="S": flag=1 elif len(List)//2==2: flag=1 print("Yes" if flag==1 else "No")
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 8, 2, 17, 13, 4, 18, 13, 13, 17, 17, 0, 13, 8, 2, 17, 13, 4, 18, 13, 13, 17, 17, 0, 13, 8, 2, 17, 13, 4, 18, 13, 13, 17, 17, 0, 13, 8, 2, 17, 13, 4, 18, 13, 13, 17, 17, 14, 2, 2, 40, 2, 13, 13, 17, 2, 2, 13, 13, 17, 2, 40, 2, 13, 13, 17, 2, 2, 13, 13, 17, 4, 13, 17, 4, 13, 17, 10, 8, 13, 10, 8, 13, 10, 8, 13, 10, 4, 13, 10, 4, 13, 10, 8, 13 ]
[ [ 98, 2 ], [ 101, 6 ], [ 99, 9 ], [ 95, 11 ], [ 102, 15 ], [ 99, 15 ], [ 102, 18 ], [ 99, 18 ], [ 89, 23 ], [ 102, 27 ], [ 99, 27 ], [ 102, 30 ], [ 99, 30 ], [ 104, 35 ], [ 102, 39 ], [ 99, 39 ], [ 102, 42 ], [ 99, 42 ], [ 92, 47 ], [ 102, 51 ], [ 99, 51 ], [ 102, 54 ], [ 99, 54 ], [ 96, 63 ], [ 105, 64 ], [ 96, 68 ], [ 105, 69 ], [ 93, 74 ], [ 90, 75 ], [ 93, 79 ], [ 90, 80 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ] ]
[ "s = input()\n\ns = list(s)\nsowth = s.count('S') if 'S' in s else 0\neast = s.count('E') if 'E' in s else 0\nnorth = s.count('N') if 'N' in s else 0\nwest = s.count('W') if 'W' in s else 0\n\nif (sowth + north != 0 and sowth * north == 0) or\\\n (west + east != 0 and west * east == 0):\n print('No')\nelse:\n print('Yes')", "s = input()", "s", "input()", "input", "s = list(s)", "s", "list(s)", "list", "s", "sowth = s.count('S') if 'S' in s else 0", "sowth", "s.count('S') if 'S' in s else 0", "'S' in s", "'S'", "s", "s.count('S')", "s.count", "s", "count", "'S'", "0", "east = s.count('E') if 'E' in s else 0", "east", "s.count('E') if 'E' in s else 0", "'E' in s", "'E'", "s", "s.count('E')", "s.count", "s", "count", "'E'", "0", "north = s.count('N') if 'N' in s else 0", "north", "s.count('N') if 'N' in s else 0", "'N' in s", "'N'", "s", "s.count('N')", "s.count", "s", "count", "'N'", "0", "west = s.count('W') if 'W' in s else 0", "west", "s.count('W') if 'W' in s else 0", "'W' in s", "'W'", "s", "s.count('W')", "s.count", "s", "count", "'W'", "0", "if (sowth + north != 0 and sowth * north == 0) or\\\n (west + east != 0 and west * east == 0):\n print('No')\nelse:\n print('Yes')", "(sowth + north != 0 and sowth * north == 0) or\\\n (west + east != 0 and west * east == 0)", "sowth + north != 0 and sowth * north == 0", "sowth + north != 0", "sowth + north", "sowth", "north", "0", "sowth * north == 0", "sowth * north", "sowth", "north", "0", "west + east != 0 and west * east == 0", "west + east != 0", "west + east", "west", "east", "0", "west * east == 0", "west * east", "west", "east", "0", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "east = s.count('E') if 'E' in s else 0", "s.count('E') if 'E' in s else 0", "east", "west = s.count('W') if 'W' in s else 0", "s.count('W') if 'W' in s else 0", "west", "sowth = s.count('S') if 'S' in s else 0", "s.count('S') if 'S' in s else 0", "sowth", "s = input()", "input()", "s", "s = list(s)", "list(s)", "s", "north = s.count('N') if 'N' in s else 0", "s.count('N') if 'N' in s else 0", "north" ]
s = input() s = list(s) sowth = s.count('S') if 'S' in s else 0 east = s.count('E') if 'E' in s else 0 north = s.count('N') if 'N' in s else 0 west = s.count('W') if 'W' in s else 0 if (sowth + north != 0 and sowth * north == 0) or\ (west + east != 0 and west * east == 0): print('No') else: print('Yes')
[ 7, 0, 13, 4, 13, 0, 13, 21, 22, 17, 17, 22, 17, 17, 22, 17, 17, 22, 17, 17, 28, 13, 13, 0, 18, 13, 13, 17, 14, 2, 2, 2, 40, 18, 13, 17, 17, 40, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 40, 18, 13, 17, 17, 40, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 21, 13 ]
[ [ 79, 2 ], [ 82, 6 ], [ 22, 21 ], [ 80, 21 ], [ 27, 24 ], [ 83, 25 ], [ 21, 26 ], [ 83, 34 ], [ 83, 39 ], [ 83, 45 ], [ 83, 48 ], [ 83, 55 ], [ 83, 60 ], [ 83, 66 ], [ 83, 69 ], [ 79, 80 ], [ 82, 83 ] ]
[ "s = input()\ncount = {\"N\":0, \"W\":0, \"S\":0, \"E\":0}\nfor i in s:\n count[i] += 1\n\nif ((count[\"N\"] != 0 and count[\"S\"] != 0) or (count[\"N\"] == count[\"S\"] == 0))and ((count[\"W\"] != 0 and count[\"E\"] != 0) or (count[\"W\"] == count[\"E\"] == 0)):\n print(\"Yes\")\n\nelse:\n print(\"No\")", "s = input()", "s", "input()", "input", "count = {\"N\":0, \"W\":0, \"S\":0, \"E\":0}", "count", "{\"N\":0, \"W\":0, \"S\":0, \"E\":0}", "\"N\"", "\"N\"", "0", "\"W\"", "\"W\"", "0", "\"S\"", "\"S\"", "0", "\"E\"", "\"E\"", "0", "for i in s:\n count[i] += 1", "i", "s", "count[i] += 1", "count[i]", "count", "i", "1", "if ((count[\"N\"] != 0 and count[\"S\"] != 0) or (count[\"N\"] == count[\"S\"] == 0))and ((count[\"W\"] != 0 and count[\"E\"] != 0) or (count[\"W\"] == count[\"E\"] == 0)):\n print(\"Yes\")\n\nelse:\n print(\"No\")", "((count[\"N\"] != 0 and count[\"S\"] != 0) or (count[\"N\"] == count[\"S\"] == 0))and ((count[\"W\"] != 0 and count[\"E\"] != 0) or (count[\"W\"] == count[\"E\"] == 0))", "(count[\"N\"] != 0 and count[\"S\"] != 0) or (count[\"N\"] == count[\"S\"] == 0)", "count[\"N\"] != 0 and count[\"S\"] != 0", "count[\"N\"] != 0", "count[\"N\"]", "count", "\"N\"", "0", "count[\"S\"] != 0", "count[\"S\"]", "count", "\"S\"", "0", "count[\"N\"] == count[\"S\"] == 0", "count[\"N\"] == count[\"S\"]", "count[\"N\"]", "count", "\"N\"", "count[\"S\"]", "count", "\"S\"", "0", "(count[\"W\"] != 0 and count[\"E\"] != 0) or (count[\"W\"] == count[\"E\"] == 0)", "count[\"W\"] != 0 and count[\"E\"] != 0", "count[\"W\"] != 0", "count[\"W\"]", "count", "\"W\"", "0", "count[\"E\"] != 0", "count[\"E\"]", "count", "\"E\"", "0", "count[\"W\"] == count[\"E\"] == 0", "count[\"W\"] == count[\"E\"]", "count[\"W\"]", "count", "\"W\"", "count[\"E\"]", "count", "\"E\"", "0", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "s = input()", "input()", "s", "count = {\"N\":0, \"W\":0, \"S\":0, \"E\":0}", "{\"N\":0, \"W\":0, \"S\":0, \"E\":0}", "count" ]
s = input() count = {"N":0, "W":0, "S":0, "E":0} for i in s: count[i] += 1 if ((count["N"] != 0 and count["S"] != 0) or (count["N"] == count["S"] == 0))and ((count["W"] != 0 and count["E"] != 0) or (count["W"] == count["E"] == 0)): print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 17, 14, 2, 40, 13, 17, 40, 13, 17, 14, 2, 2, 40, 13, 17, 40, 13, 17, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 14, 2, 2, 40, 13, 17, 40, 13, 17, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 116, 2 ], [ 119, 6 ], [ 117, 9 ], [ 104, 13 ], [ 117, 16 ], [ 113, 20 ], [ 117, 23 ], [ 122, 27 ], [ 117, 30 ], [ 110, 34 ], [ 120, 39 ], [ 114, 42 ], [ 105, 48 ], [ 123, 51 ], [ 105, 55 ], [ 123, 58 ], [ 107, 61 ], [ 120, 66 ], [ 114, 69 ], [ 105, 75 ], [ 123, 78 ], [ 105, 82 ], [ 123, 85 ], [ 101, 88 ], [ 102, 92 ], [ 108, 92 ], [ 111, 92 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ], [ 113, 114 ], [ 116, 117 ], [ 119, 120 ], [ 122, 123 ] ]
[ "s=input()\na=s.count(\"N\")\nb=s.count(\"W\")\nc=s.count(\"S\")\nd=s.count(\"E\")\nans=False\nif a!=0 and c!=0:\n if (b!=0 and d!=0) or (b==0 and d==0):\n ans=True\nif a==0 and c==0:\n if (b!=0 and d!=0) or (b==0 and d==0):\n ans=True\nif ans==True:\n print(\"Yes\")\nelse:\n print(\"No\")", "s=input()", "s", "input()", "input", "a=s.count(\"N\")", "a", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "b=s.count(\"W\")", "b", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "c=s.count(\"S\")", "c", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "d=s.count(\"E\")", "d", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "ans=False", "ans", "False", "if a!=0 and c!=0:\n if (b!=0 and d!=0) or (b==0 and d==0):\n ans=True", "a!=0 and c!=0", "a!=0", "a", "0", "c!=0", "c", "0", "if (b!=0 and d!=0) or (b==0 and d==0):\n ans=True", "(b!=0 and d!=0) or (b==0 and d==0)", "b!=0 and d!=0", "b!=0", "b", "0", "d!=0", "d", "0", "b==0 and d==0", "b==0", "b", "0", "d==0", "d", "0", "ans=True", "ans", "True", "if a==0 and c==0:\n if (b!=0 and d!=0) or (b==0 and d==0):\n ans=True", "a==0 and c==0", "a==0", "a", "0", "c==0", "c", "0", "if (b!=0 and d!=0) or (b==0 and d==0):\n ans=True", "(b!=0 and d!=0) or (b==0 and d==0)", "b!=0 and d!=0", "b!=0", "b", "0", "d!=0", "d", "0", "b==0 and d==0", "b==0", "b", "0", "d==0", "d", "0", "ans=True", "ans", "True", "if ans==True:\n print(\"Yes\")\nelse:\n print(\"No\")", "ans==True", "ans", "True", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "ans=True", "True", "ans", "b=s.count(\"W\")", "s.count(\"W\")", "b", "ans=True", "True", "ans", "ans=False", "False", "ans", "c=s.count(\"S\")", "s.count(\"S\")", "c", "s=input()", "input()", "s", "a=s.count(\"N\")", "s.count(\"N\")", "a", "d=s.count(\"E\")", "s.count(\"E\")", "d" ]
s=input() a=s.count("N") b=s.count("W") c=s.count("S") d=s.count("E") ans=False if a!=0 and c!=0: if (b!=0 and d!=0) or (b==0 and d==0): ans=True if a==0 and c==0: if (b!=0 and d!=0) or (b==0 and d==0): ans=True if ans==True: print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 28, 13, 13, 4, 18, 13, 13, 13, 14, 2, 4, 13, 13, 17, 4, 13, 17, 14, 2, 4, 13, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 61, 2 ], [ 64, 6 ], [ 11, 10 ], [ 62, 10 ], [ 65, 14 ], [ 10, 16 ], [ 65, 21 ], [ 65, 30 ], [ 65, 36 ], [ 65, 39 ], [ 65, 47 ], [ 65, 50 ], [ 61, 62 ], [ 64, 65 ] ]
[ "S = input()\nset_ = set()\n\nfor i in S:\n set_.add(i)\n\nif len(set_) == 4:\n print(\"Yes\")\nelif len(set_) == 2:\n if 'N' in set_ and 'S' in set_:\n print(\"Yes\")\n elif 'E' in set_ and 'W' in set_:\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "S = input()", "S", "input()", "input", "set_ = set()", "set_", "set()", "set", "for i in S:\n set_.add(i)", "i", "S", "set_.add(i)", "set_.add", "set_", "add", "i", "if len(set_) == 4:\n print(\"Yes\")\nelif len(set_) == 2:\n if 'N' in set_ and 'S' in set_:\n print(\"Yes\")\n elif 'E' in set_ and 'W' in set_:\n print(\"Yes\")\n else:\n print(\"No\")\nelse:\n print(\"No\")", "len(set_) == 4", "len(set_)", "len", "set_", "4", "print(\"Yes\")", "print", "\"Yes\"", "elif len(set_) == 2:\n if 'N' in set_ and 'S' in set_:\n print(\"Yes\")\n elif 'E' in set_ and 'W' in set_:\n print(\"Yes\")\n else:\n print(\"No\")", "len(set_) == 2", "len(set_)", "len", "set_", "2", "if 'N' in set_ and 'S' in set_:\n print(\"Yes\")\n elif 'E' in set_ and 'W' in set_:\n print(\"Yes\")\n else:\n print(\"No\")", "'N' in set_ and 'S' in set_", "'N' in set_", "'N'", "set_", "'S' in set_", "'S'", "set_", "print(\"Yes\")", "print", "\"Yes\"", "elif 'E' in set_ and 'W' in set_:\n print(\"Yes\")\n ", "'E' in set_ and 'W' in set_", "'E' in set_", "'E'", "set_", "'W' in set_", "'W'", "set_", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "S = input()", "input()", "S", "set_ = set()", "set()", "set_" ]
S = input() set_ = set() for i in S: set_.add(i) if len(set_) == 4: print("Yes") elif len(set_) == 2: if 'N' in set_ and 'S' in set_: print("Yes") elif 'E' in set_ and 'W' in set_: print("Yes") else: print("No") else: print("No")
[ 7, 12, 13, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 40, 13, 2, 40, 13, 13, 2, 13, 40, 13, 2, 40, 13, 13, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 9, 8 ], [ 4, 11 ], [ 16, 15 ], [ 4, 18 ], [ 23, 22 ], [ 4, 25 ], [ 30, 29 ], [ 4, 32 ], [ 8, 40 ], [ 29, 42 ], [ 8, 45 ], [ 29, 46 ], [ 15, 48 ], [ 22, 50 ], [ 15, 53 ], [ 22, 54 ], [ 69, 66 ] ]
[ "def solve():\n S = input()\n n = S.count('N')\n e = S.count('E')\n w = S.count('W')\n s = S.count('S')\n if (n and not s) or (not n and s) or (e and not w) or (not e and w):\n print('No')\n else:\n print('Yes')\n\nif __name__ == \"__main__\":\n solve()", "def solve():\n S = input()\n n = S.count('N')\n e = S.count('E')\n w = S.count('W')\n s = S.count('S')\n if (n and not s) or (not n and s) or (e and not w) or (not e and w):\n print('No')\n else:\n print('Yes')", "solve", "S = input()", "S", "input()", "input", "n = S.count('N')", "n", "S.count('N')", "S.count", "S", "count", "'N'", "e = S.count('E')", "e", "S.count('E')", "S.count", "S", "count", "'E'", "w = S.count('W')", "w", "S.count('W')", "S.count", "S", "count", "'W'", "s = S.count('S')", "s", "S.count('S')", "S.count", "S", "count", "'S'", "if (n and not s) or (not n and s) or (e and not w) or (not e and w):\n print('No')\n else:\n print('Yes')", "(n and not s) or (not n and s) or (e and not w) or (not e and w)", "(n and not s) or (not n and s) or (e and not w)", "(n and not s) or (not n and s)", "n and not s", "n", "not s", "s", "not n and s", "not n", "n", "s", "e and not w", "e", "not w", "w", "not e and w", "not e", "e", "w", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "if __name__ == \"__main__\":\n solve()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "solve()", "solve", "def solve():\n S = input()\n n = S.count('N')\n e = S.count('E')\n w = S.count('W')\n s = S.count('S')\n if (n and not s) or (not n and s) or (e and not w) or (not e and w):\n print('No')\n else:\n print('Yes')", "def solve():\n S = input()\n n = S.count('N')\n e = S.count('E')\n w = S.count('W')\n s = S.count('S')\n if (n and not s) or (not n and s) or (e and not w) or (not e and w):\n print('No')\n else:\n print('Yes')", "solve" ]
def solve(): S = input() n = S.count('N') e = S.count('E') w = S.count('W') s = S.count('S') if (n and not s) or (not n and s) or (e and not w) or (not e and w): print('No') else: print('Yes') if __name__ == "__main__": solve()
[ 7, 0, 13, 4, 13, 0, 13, 17, 14, 2, 40, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 0, 13, 17, 14, 2, 40, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 0, 13, 17, 14, 2, 40, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 0, 13, 17, 14, 2, 40, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 91, 2 ], [ 103, 6 ], [ 92, 13 ], [ 92, 20 ], [ 94, 25 ], [ 92, 32 ], [ 92, 39 ], [ 97, 44 ], [ 92, 51 ], [ 92, 58 ], [ 100, 63 ], [ 92, 70 ], [ 92, 77 ], [ 88, 82 ], [ 89, 86 ], [ 101, 86 ], [ 98, 86 ], [ 95, 86 ], [ 104, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ] ]
[ "S=input()\nans='Yes'\nif S.count('N')>=1 and S.count('S')==0:\n ans='No'\nelif S.count('S')>=1 and S.count('N')==0:\n ans='No'\nelif S.count('E')>=1 and S.count('W')==0:\n ans='No'\nelif S.count('W')>=1 and S.count('E')==0:\n ans='No'\nprint(ans)", "S=input()", "S", "input()", "input", "ans='Yes'", "ans", "'Yes'", "if S.count('N')>=1 and S.count('S')==0:\n ans='No'\nelif S.count('S')>=1 and S.count('N')==0:\n ans='No'\nelif S.count('E')>=1 and S.count('W')==0:\n ans='No'\nelif S.count('W')>=1 and S.count('E')==0:\n ans='No'", "S.count('N')>=1 and S.count('S')==0", "S.count('N')>=1", "S.count('N')", "S.count", "S", "count", "'N'", "1", "S.count('S')==0", "S.count('S')", "S.count", "S", "count", "'S'", "0", "ans='No'", "ans", "'No'", "elif S.count('S')>=1 and S.count('N')==0:\n ans='No'", "S.count('S')>=1 and S.count('N')==0", "S.count('S')>=1", "S.count('S')", "S.count", "S", "count", "'S'", "1", "S.count('N')==0", "S.count('N')", "S.count", "S", "count", "'N'", "0", "ans='No'", "ans", "'No'", "elif S.count('E')>=1 and S.count('W')==0:\n ans='No'", "S.count('E')>=1 and S.count('W')==0", "S.count('E')>=1", "S.count('E')", "S.count", "S", "count", "'E'", "1", "S.count('W')==0", "S.count('W')", "S.count", "S", "count", "'W'", "0", "ans='No'", "ans", "'No'", "elif S.count('W')>=1 and S.count('E')==0:\n ans='No'", "S.count('W')>=1 and S.count('E')==0", "S.count('W')>=1", "S.count('W')", "S.count", "S", "count", "'W'", "1", "S.count('E')==0", "S.count('E')", "S.count", "S", "count", "'E'", "0", "ans='No'", "ans", "'No'", "print(ans)", "print", "ans", "ans='No'", "'No'", "ans", "S=input()", "input()", "S", "ans='No'", "'No'", "ans", "ans='No'", "'No'", "ans", "ans='No'", "'No'", "ans", "ans='Yes'", "'Yes'", "ans" ]
S=input() ans='Yes' if S.count('N')>=1 and S.count('S')==0: ans='No' elif S.count('S')>=1 and S.count('N')==0: ans='No' elif S.count('E')>=1 and S.count('W')==0: ans='No' elif S.count('W')>=1 and S.count('E')==0: ans='No' print(ans)
[ 7, 12, 13, 0, 13, 4, 13, 41, 28, 13, 13, 2, 13, 17, 4, 17, 0, 13, 4, 13, 13, 41, 28, 13, 13, 2, 13, 17, 4, 17, 0, 13, 4, 13, 13, 41, 28, 13, 13, 2, 13, 17, 4, 17, 0, 13, 4, 13, 13, 41, 28, 13, 13, 2, 13, 17, 4, 17, 0, 13, 4, 13, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 13, 13, 4, 13, 17, 4, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 10, 9 ], [ 4, 9 ], [ 9, 12 ], [ 18, 17 ], [ 24, 23 ], [ 4, 23 ], [ 23, 26 ], [ 32, 31 ], [ 38, 37 ], [ 4, 37 ], [ 37, 40 ], [ 46, 45 ], [ 52, 51 ], [ 4, 51 ], [ 51, 54 ], [ 60, 59 ], [ 17, 67 ], [ 31, 70 ], [ 17, 74 ], [ 31, 75 ], [ 79, 78 ], [ 82, 81 ], [ 45, 87 ], [ 59, 90 ], [ 45, 94 ], [ 59, 95 ], [ 99, 98 ], [ 102, 101 ], [ 81, 105 ], [ 78, 105 ], [ 101, 106 ], [ 98, 106 ], [ 117, 114 ] ]
[ "#!/usr/bin/env python3\n\ndef main():\n S = input()\n\n s = len([1 for _ in S if _ == 'S'])\n n = len([1 for _ in S if _ == 'N'])\n e = len([1 for _ in S if _ == 'E'])\n w = len([1 for _ in S if _ == 'W'])\n\n if (s > 0 and n > 0) or (s == n == 0):\n flag1 = True\n else:\n flag1 = False\n if (e > 0 and w > 0) or (e == w == 0):\n flag2 = True\n else:\n flag2 = False\n \n if flag1 and flag2:\n print('Yes')\n else:\n print('No')\n\nmain()", "def main():\n S = input()\n\n s = len([1 for _ in S if _ == 'S'])\n n = len([1 for _ in S if _ == 'N'])\n e = len([1 for _ in S if _ == 'E'])\n w = len([1 for _ in S if _ == 'W'])\n\n if (s > 0 and n > 0) or (s == n == 0):\n flag1 = True\n else:\n flag1 = False\n if (e > 0 and w > 0) or (e == w == 0):\n flag2 = True\n else:\n flag2 = False\n \n if flag1 and flag2:\n print('Yes')\n else:\n print('No')", "main", "S = input()", "S", "input()", "input", "1 for _ in S if _ == 'S'", "for _ in S if _ == 'S'", "_", "S", "_ == 'S'", "_", "'S'", "if _ == 'S'", "1", "s = len([1 for _ in S if _ == 'S'])", "s", "len([1 for _ in S if _ == 'S'])", "len", "[1 for _ in S if _ == 'S']", "1 for _ in S if _ == 'N'", "for _ in S if _ == 'N'", "_", "S", "_ == 'N'", "_", "'N'", "if _ == 'N'", "1", "n = len([1 for _ in S if _ == 'N'])", "n", "len([1 for _ in S if _ == 'N'])", "len", "[1 for _ in S if _ == 'N']", "1 for _ in S if _ == 'E'", "for _ in S if _ == 'E'", "_", "S", "_ == 'E'", "_", "'E'", "if _ == 'E'", "1", "e = len([1 for _ in S if _ == 'E'])", "e", "len([1 for _ in S if _ == 'E'])", "len", "[1 for _ in S if _ == 'E']", "1 for _ in S if _ == 'W'", "for _ in S if _ == 'W'", "_", "S", "_ == 'W'", "_", "'W'", "if _ == 'W'", "1", "w = len([1 for _ in S if _ == 'W'])", "w", "len([1 for _ in S if _ == 'W'])", "len", "[1 for _ in S if _ == 'W']", "if (s > 0 and n > 0) or (s == n == 0):\n flag1 = True\n else:\n flag1 = False\n ", "(s > 0 and n > 0) or (s == n == 0)", "s > 0 and n > 0", "s > 0", "s", "0", "n > 0", "n", "0", "s == n == 0", "s == n", "s", "n", "0", "flag1 = True", "flag1", "True", "flag1 = False", "flag1", "False", "if (e > 0 and w > 0) or (e == w == 0):\n flag2 = True\n else:\n flag2 = False\n \n ", "(e > 0 and w > 0) or (e == w == 0)", "e > 0 and w > 0", "e > 0", "e", "0", "w > 0", "w", "0", "e == w == 0", "e == w", "e", "w", "0", "flag2 = True", "flag2", "True", "flag2 = False", "flag2", "False", "if flag1 and flag2:\n print('Yes')\n else:\n print('No')", "flag1 and flag2", "flag1", "flag2", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "main()", "main", "def main():\n S = input()\n\n s = len([1 for _ in S if _ == 'S'])\n n = len([1 for _ in S if _ == 'N'])\n e = len([1 for _ in S if _ == 'E'])\n w = len([1 for _ in S if _ == 'W'])\n\n if (s > 0 and n > 0) or (s == n == 0):\n flag1 = True\n else:\n flag1 = False\n if (e > 0 and w > 0) or (e == w == 0):\n flag2 = True\n else:\n flag2 = False\n \n if flag1 and flag2:\n print('Yes')\n else:\n print('No')", "def main():\n S = input()\n\n s = len([1 for _ in S if _ == 'S'])\n n = len([1 for _ in S if _ == 'N'])\n e = len([1 for _ in S if _ == 'E'])\n w = len([1 for _ in S if _ == 'W'])\n\n if (s > 0 and n > 0) or (s == n == 0):\n flag1 = True\n else:\n flag1 = False\n if (e > 0 and w > 0) or (e == w == 0):\n flag2 = True\n else:\n flag2 = False\n \n if flag1 and flag2:\n print('Yes')\n else:\n print('No')", "main" ]
#!/usr/bin/env python3 def main(): S = input() s = len([1 for _ in S if _ == 'S']) n = len([1 for _ in S if _ == 'N']) e = len([1 for _ in S if _ == 'E']) w = len([1 for _ in S if _ == 'W']) if (s > 0 and n > 0) or (s == n == 0): flag1 = True else: flag1 = False if (e > 0 and w > 0) or (e == w == 0): flag2 = True else: flag2 = False if flag1 and flag2: print('Yes') else: print('No') main()
[ 7, 15, 13, 12, 13, 29, 4, 13, 4, 13, 12, 13, 29, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 12, 13, 0, 13, 4, 13, 29, 4, 13, 18, 13, 39, 4, 13, 13, 12, 13, 29, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 13, 17, 13, 17, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 4, 13, 13, 10, 12, 13, 10, 12, 13, 10, 17, 13, 10, 17, 13, 10, 12, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 12, 13 ]
[ [ 27, 26 ], [ 26, 33 ], [ 26, 37 ], [ 170, 50 ], [ 180, 52 ], [ 161, 54 ], [ 155, 57 ], [ 152, 59 ], [ 158, 61 ], [ 149, 63 ], [ 67, 66 ], [ 171, 66 ], [ 66, 70 ], [ 140, 73 ], [ 66, 77 ], [ 176, 80 ], [ 66, 84 ], [ 143, 87 ], [ 164, 90 ], [ 141, 96 ], [ 159, 96 ], [ 177, 99 ], [ 150, 99 ], [ 141, 103 ], [ 159, 103 ], [ 177, 106 ], [ 150, 106 ], [ 167, 109 ], [ 144, 115 ], [ 156, 115 ], [ 165, 118 ], [ 153, 118 ], [ 144, 122 ], [ 156, 122 ], [ 165, 125 ], [ 153, 125 ], [ 173, 128 ], [ 174, 132 ], [ 168, 132 ], [ 162, 132 ], [ 140, 141 ], [ 143, 144 ], [ 149, 150 ], [ 152, 153 ], [ 155, 156 ], [ 158, 159 ], [ 161, 162 ], [ 164, 165 ], [ 167, 168 ], [ 170, 171 ], [ 173, 174 ], [ 176, 177 ] ]
[ "# For taking integer inputs.\nimport math\n\n\ndef inp():\n return(int(input()))\n\n\n# For taking List inputs.\ndef inlist():\n return(list(map(int, input().split())))\n\n\n# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.\ndef instr():\n s = input()\n return(list(s[:len(s)]))\n\n\n# For taking space seperated integer variable inputs.\ndef invr():\n return(map(int, input().split()))\n\n\nS = instr()\nr = \"Yes\"\ne, w, n, s = 0, 0, 0, 0\nfor i in S:\n if i in \"N\":\n n += 1\n elif i == \"S\":\n s += 1\n elif i == \"E\":\n e += 1\n else:\n w += 1\nif (n > 0 and s > 0) or (n == 0 and s == 0):\n pass\nelse:\n r = \"No\"\nif (e > 0 and w > 0) or (e == 0 and w == 0):\n pass\nelse:\n r = \"No\"\nprint(r)", "import math", "math", "def inp():\n return(int(input()))\n\n\n# For taking List inputs.", "inp", "return(int(input()))", "int(input())", "int", "input()", "input", "def inlist():\n return(list(map(int, input().split())))\n\n\n# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.", "inlist", "return(list(map(int, input().split())))", "list(map(int, input().split()))", "list", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "def instr():\n s = input()\n return(list(s[:len(s)]))\n\n\n# For taking space seperated integer variable inputs.", "instr", "s = input()", "s", "input()", "input", "return(list(s[:len(s)]))", "list(s[:len(s)])", "list", "s[:len(s)]", "s", ":len(s)", "len(s)", "len", "s", "def invr():\n return(map(int, input().split()))", "invr", "return(map(int, input().split()))", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "S = instr()", "S", "instr()", "instr", "r = \"Yes\"", "r", "\"Yes\"", "e, w, n, s = 0, 0, 0, 0", "e", "0", "w", "0", "n", "0", "s", "0", "for i in S:\n if i in \"N\":\n n += 1\n elif i == \"S\":\n s += 1\n elif i == \"E\":\n e += 1\n else:\n w += 1", "i", "S", "if i in \"N\":\n n += 1\n elif i == \"S\":\n s += 1\n elif i == \"E\":\n e += 1\n else:\n w += 1", "i in \"N\"", "i", "\"N\"", "n += 1", "n", "1", "elif i == \"S\":\n s += 1\n ", "i == \"S\"", "i", "\"S\"", "s += 1", "s", "1", "elif i == \"E\":\n e += 1\n ", "i == \"E\"", "i", "\"E\"", "e += 1", "e", "1", "w += 1", "w", "1", "if (n > 0 and s > 0) or (n == 0 and s == 0):\n pass\nelse:\n r = \"No\"", "(n > 0 and s > 0) or (n == 0 and s == 0)", "n > 0 and s > 0", "n > 0", "n", "0", "s > 0", "s", "0", "n == 0 and s == 0", "n == 0", "n", "0", "s == 0", "s", "0", "r = \"No\"", "r", "\"No\"", "if (e > 0 and w > 0) or (e == 0 and w == 0):\n pass\nelse:\n r = \"No\"", "(e > 0 and w > 0) or (e == 0 and w == 0)", "e > 0 and w > 0", "e > 0", "e", "0", "w > 0", "w", "0", "e == 0 and w == 0", "e == 0", "e", "0", "w == 0", "w", "0", "r = \"No\"", "r", "\"No\"", "print(r)", "print", "r", "def invr():\n return(map(int, input().split()))", "def invr():\n return(map(int, input().split()))", "invr", "def inlist():\n return(list(map(int, input().split())))\n\n\n# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.", "def inlist():\n return(list(map(int, input().split())))\n\n\n# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.", "inlist", "n += 1", "1", "n", "e += 1", "1", "e", "def inp():\n return(int(input()))\n\n\n# For taking List inputs.", "def inp():\n return(int(input()))\n\n\n# For taking List inputs.", "inp", "s = 0, 0, 0, 0", "0", "s", "w, n, s = 0, 0, 0, 0", "0", "w", "e, w, n, s = 0, 0, 0, 0", "0", "e", "n, s = 0, 0, 0, 0", "0", "n", "r = \"Yes\"", "\"Yes\"", "r", "w += 1", "1", "w", "r = \"No\"", "\"No\"", "r", "S = instr()", "instr()", "S", "r = \"No\"", "\"No\"", "r", "s += 1", "1", "s", "def instr():\n s = input()\n return(list(s[:len(s)]))\n\n\n# For taking space seperated integer variable inputs.", "def instr():\n s = input()\n return(list(s[:len(s)]))\n\n\n# For taking space seperated integer variable inputs.", "instr" ]
# For taking integer inputs. import math def inp(): return(int(input())) # For taking List inputs. def inlist(): return(list(map(int, input().split()))) # For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable. def instr(): s = input() return(list(s[:len(s)])) # For taking space seperated integer variable inputs. def invr(): return(map(int, input().split())) S = instr() r = "Yes" e, w, n, s = 0, 0, 0, 0 for i in S: if i in "N": n += 1 elif i == "S": s += 1 elif i == "E": e += 1 else: w += 1 if (n > 0 and s > 0) or (n == 0 and s == 0): pass else: r = "No" if (e > 0 and w > 0) or (e == 0 and w == 0): pass else: r = "No" print(r)
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 97, 2 ], [ 94, 6 ], [ 98, 9 ], [ 85, 13 ], [ 98, 16 ], [ 82, 20 ], [ 98, 23 ], [ 88, 27 ], [ 98, 30 ], [ 100, 34 ], [ 83, 40 ], [ 95, 43 ], [ 83, 47 ], [ 95, 50 ], [ 89, 56 ], [ 86, 59 ], [ 89, 63 ], [ 86, 66 ], [ 91, 69 ], [ 92, 73 ], [ 101, 73 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ] ]
[ "s = input()\nN = s.count(\"N\")\nW = s.count(\"W\")\nS = s.count(\"S\")\nE = s.count(\"E\")\nflag = -1\nif (S > 0 and N > 0) or (S == 0 and N == 0) :\n if (E > 0 and W > 0) or (E == 0 and W == 0) :\n flag = 1\nif flag == 1 :\n print(\"Yes\")\nelse :\n print(\"No\")", "s = input()", "s", "input()", "input", "N = s.count(\"N\")", "N", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "W = s.count(\"W\")", "W", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "S = s.count(\"S\")", "S", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "E = s.count(\"E\")", "E", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "flag = -1", "flag", "-1", "if (S > 0 and N > 0) or (S == 0 and N == 0) :\n if (E > 0 and W > 0) or (E == 0 and W == 0) :\n flag = 1", "(S > 0 and N > 0) or (S == 0 and N == 0)", "S > 0 and N > 0", "S > 0", "S", "0", "N > 0", "N", "0", "S == 0 and N == 0", "S == 0", "S", "0", "N == 0", "N", "0", "if (E > 0 and W > 0) or (E == 0 and W == 0) :\n flag = 1", "(E > 0 and W > 0) or (E == 0 and W == 0)", "E > 0 and W > 0", "E > 0", "E", "0", "W > 0", "W", "0", "E == 0 and W == 0", "E == 0", "E", "0", "W == 0", "W", "0", "flag = 1", "flag", "1", "if flag == 1 :\n print(\"Yes\")\nelse :\n print(\"No\")", "flag == 1", "flag", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "S = s.count(\"S\")", "s.count(\"S\")", "S", "W = s.count(\"W\")", "s.count(\"W\")", "W", "E = s.count(\"E\")", "s.count(\"E\")", "E", "flag = 1", "1", "flag", "N = s.count(\"N\")", "s.count(\"N\")", "N", "s = input()", "input()", "s", "flag = -1", "-1", "flag" ]
s = input() N = s.count("N") W = s.count("W") S = s.count("S") E = s.count("E") flag = -1 if (S > 0 and N > 0) or (S == 0 and N == 0) : if (E > 0 and W > 0) or (E == 0 and W == 0) : flag = 1 if flag == 1 : print("Yes") else : print("No")
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 12, 13, 29, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 23, 13, 13, 23, 13, 13, 12, 13, 42, 13, 29, 13, 23, 13, 23, 13, 12, 13, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 29, 2, 4, 13, 2, 13, 13, 4, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 0, 13, 4, 18, 4, 13, 13, 0, 13, 17, 41, 28, 13, 17, 4, 4, 18, 13, 13, 13, 0, 13, 13, 13, 13, 13, 14, 2, 2, 13, 13, 40, 2, 13, 13, 14, 2, 2, 13, 13, 40, 2, 13, 13, 0, 13, 4, 18, 17, 13, 4, 13, 18, 13, 13, 14, 2, 13, 17, 4, 13, 10, 18, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 140, 4 ], [ 27, 14 ], [ 24, 17 ], [ 141, 21 ], [ 25, 24 ], [ 28, 27 ], [ 36, 34 ], [ 36, 36 ], [ 38, 38 ], [ 51, 44 ], [ 53, 45 ], [ 147, 47 ], [ 51, 48 ], [ 53, 49 ], [ 51, 51 ], [ 53, 53 ], [ 69, 61 ], [ 73, 62 ], [ 71, 66 ], [ 75, 67 ], [ 69, 69 ], [ 71, 71 ], [ 73, 73 ], [ 75, 75 ], [ 80, 79 ], [ 141, 83 ], [ 87, 86 ], [ 91, 90 ], [ 79, 95 ], [ 90, 97 ], [ 100, 99 ], [ 100, 101 ], [ 100, 102 ], [ 100, 103 ], [ 99, 107 ], [ 102, 108 ], [ 99, 111 ], [ 102, 112 ], [ 101, 116 ], [ 103, 117 ], [ 101, 120 ], [ 103, 121 ], [ 124, 123 ], [ 123, 131 ], [ 86, 132 ], [ 156, 138 ], [ 140, 141 ] ]
[ "import sys\ninput = sys.stdin.readline\n\ndef linput(ty=int, cvt=list):\n\treturn cvt(map(ty,input().split()))\n\ndef gcd(a: int, b: int):\n\twhile b: a, b = b, a%b\n\treturn a\n\ndef lcm(a: int, b: int):\n\treturn a * b // gcd(a, b)\n\ndef dist(x1,y1,x2,y2):\n\treturn abs(x1-x2)+abs(y1-y2)\n\ndef main():\n\tS = input().rstrip()\n\tres = 1\n\n\tn,w,s,e=[S.count(x) for x in \"NWSE\"]\n\t\n\tif n+s and not n*s: res=0\n\tif w+e and not w*e: res=0\n\t\n\tsT = \"No Yes\".split()\n\tprint(sT[res])\n\t\n\nif __name__ == \"__main__\":\n\tmain()", "import sys", "sys", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "def linput(ty=int, cvt=list):\n\treturn cvt(map(ty,input().split()))", "linput", "return cvt(map(ty,input().split()))", "cvt(map(ty,input().split()))", "cvt", "map(ty,input().split())", "map", "ty", "input().split()", "().split", "()", "input", "split", "ty=int", "ty", "int", "cvt=list", "cvt", "list", "def gcd(a: int, b: int):\n\twhile b: a, b = b, a%b\n\treturn a", "gcd", "while b: a, b = b, a%b\n\t", "b", "return a", "a", "a: int", "a", "b: int", "b", "def lcm(a: int, b: int):\n\treturn a * b // gcd(a, b)", "lcm", "return a * b // gcd(a, b)", "a * b // gcd(a, b)", "a * b", "a", "b", "gcd(a, b)", "gcd", "a", "b", "a: int", "a", "b: int", "b", "def dist(x1,y1,x2,y2):\n\treturn abs(x1-x2)+abs(y1-y2)", "dist", "return abs(x1-x2)+abs(y1-y2)", "abs(x1-x2)+abs(y1-y2)", "abs(x1-x2)", "abs", "x1-x2", "x1", "x2", "abs(y1-y2)", "abs", "y1-y2", "y1", "y2", "x1", "x1", "y1", "y1", "x2", "x2", "y2", "y2", "def main():\n\tS = input().rstrip()\n\tres = 1\n\n\tn,w,s,e=[S.count(x) for x in \"NWSE\"]\n\t\n\tif n+s and not n*s: res=0\n\tif w+e and not w*e: res=0\n\t\n\tsT = \"No Yes\".split()\n\tprint(sT[res])\n\t", "main", "S = input().rstrip()", "S", "input().rstrip()", "().rstrip", "()", "input", "rstrip", "res = 1", "res", "1", "S.count(x) for x in \"NWSE\"", "for x in \"NWSE\"", "x", "\"NWSE\"", "for x in \"NWSE\"", "S.count(x)", "S.count", "S", "count", "x", "n,w,s,e=[S.count(x) for x in \"NWSE\"]", "n", "[S.count(x) for x in \"NWSE\"]", "w", "s", "e", "if n+s and not n*s: res=0\n\t", "n+s and not n*s", "n+s", "n", "s", "not n*s", "n*s", "n", "s", "if w+e and not w*e: res=0\n\t\n\t", "w+e and not w*e", "w+e", "w", "e", "not w*e", "w*e", "w", "e", "sT = \"No Yes\".split()", "sT", "\"No Yes\".split()", "\"No Yes\".split", "\"No Yes\"", "split", "print(sT[res])", "print", "sT[res]", "sT", "res", "if __name__ == \"__main__\":\n\tmain()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "input = sys.stdin.readline", "sys.stdin.readline", "input", "def linput(ty=int, cvt=list):\n\treturn cvt(map(ty,input().split()))", "def linput(ty=int, cvt=list):\n\treturn cvt(map(ty,input().split()))", "linput", "def gcd(a: int, b: int):\n\twhile b: a, b = b, a%b\n\treturn a", "def gcd(a: int, b: int):\n\twhile b: a, b = b, a%b\n\treturn a", "gcd", "def lcm(a: int, b: int):\n\treturn a * b // gcd(a, b)", "def lcm(a: int, b: int):\n\treturn a * b // gcd(a, b)", "lcm", "def dist(x1,y1,x2,y2):\n\treturn abs(x1-x2)+abs(y1-y2)", "def dist(x1,y1,x2,y2):\n\treturn abs(x1-x2)+abs(y1-y2)", "dist", "def main():\n\tS = input().rstrip()\n\tres = 1\n\n\tn,w,s,e=[S.count(x) for x in \"NWSE\"]\n\t\n\tif n+s and not n*s: res=0\n\tif w+e and not w*e: res=0\n\t\n\tsT = \"No Yes\".split()\n\tprint(sT[res])\n\t", "def main():\n\tS = input().rstrip()\n\tres = 1\n\n\tn,w,s,e=[S.count(x) for x in \"NWSE\"]\n\t\n\tif n+s and not n*s: res=0\n\tif w+e and not w*e: res=0\n\t\n\tsT = \"No Yes\".split()\n\tprint(sT[res])\n\t", "main" ]
import sys input = sys.stdin.readline def linput(ty=int, cvt=list): return cvt(map(ty,input().split())) def gcd(a: int, b: int): while b: a, b = b, a%b return a def lcm(a: int, b: int): return a * b // gcd(a, b) def dist(x1,y1,x2,y2): return abs(x1-x2)+abs(y1-y2) def main(): S = input().rstrip() res = 1 n,w,s,e=[S.count(x) for x in "NWSE"] if n+s and not n*s: res=0 if w+e and not w*e: res=0 sT = "No Yes".split() print(sT[res]) if __name__ == "__main__": main()
[ 7, 0, 13, 4, 13, 0, 13, 2, 17, 13, 13, 2, 17, 13, 13, 2, 17, 13, 13, 2, 17, 13, 4, 13, 8, 2, 2, 13, 13, 2, 13, 13, 17, 17, 10, 2, 13, 10, 2, 13, 10, 2, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 47, 2 ], [ 41, 6 ], [ 48, 9 ], [ 44, 10 ], [ 48, 13 ], [ 38, 14 ], [ 48, 17 ], [ 35, 18 ], [ 48, 21 ], [ 42, 27 ], [ 36, 28 ], [ 39, 30 ], [ 45, 31 ], [ 35, 36 ], [ 38, 39 ], [ 41, 42 ], [ 44, 45 ], [ 47, 48 ] ]
[ "S = input()\nn,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S\nprint('Yes' if n == s and e == w else 'No')", "S = input()", "S", "input()", "input", "n,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "n", "'N' in S", "'N'", "S", "w", "'W' in S", "'W'", "S", "e", "'E' in S", "'E'", "S", "s", "'S' in S", "'S'", "S", "print('Yes' if n == s and e == w else 'No')", "print", "'Yes' if n == s and e == w else 'No'", "n == s and e == w", "n == s", "n", "s", "e == w", "e", "w", "'Yes'", "'No'", "s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'S' in S", "s", "e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'E' in S", "e", "n,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'N' in S", "n", "w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'W' in S", "w", "S = input()", "input()", "S" ]
S = input() n,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S print('Yes' if n == s and e == w else 'No')
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 0, 13, 39, 39, 17, 17, 39, 17, 17, 39, 17, 17, 17, 17, 14, 2, 40, 4, 13, 13, 17, 40, 4, 13, 13, 17, 4, 13, 17, 4, 13, 28, 13, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 13, 0, 13, 17, 14, 2, 13, 4, 13, 13, 4, 13, 17, 4, 13, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 39, 13, 10, 17, 13 ]
[ [ 71, 2 ], [ 77, 10 ], [ 72, 28 ], [ 72, 33 ], [ 42, 41 ], [ 78, 41 ], [ 80, 44 ], [ 48, 47 ], [ 72, 47 ], [ 47, 51 ], [ 41, 52 ], [ 74, 54 ], [ 75, 58 ], [ 81, 58 ], [ 41, 61 ], [ 71, 72 ], [ 74, 75 ], [ 77, 78 ], [ 80, 81 ] ]
[ "s = list(set(input()))\nl = [[\"N\",\"S\"], [\"W\",\"E\"], [\"N\", \"S\", \"W\", \"E\"]]\nif len(s) != 2 and len(s) != 4:\n print(\"No\")\n exit()\nfor i in l:\n x = 0\n for j in s:\n if j in i:\n x += 1\n if x == len(i):\n print(\"Yes\")\n exit()\nprint(\"No\")", "s = list(set(input()))", "s", "list(set(input()))", "list", "set(input())", "set", "input()", "input", "l = [[\"N\",\"S\"], [\"W\",\"E\"], [\"N\", \"S\", \"W\", \"E\"]]", "l", "[[\"N\",\"S\"], [\"W\",\"E\"], [\"N\", \"S\", \"W\", \"E\"]]", "[\"N\",\"S\"]", "\"N\"", "\"S\"", "[\"W\",\"E\"]", "\"W\"", "\"E\"", "[\"N\", \"S\", \"W\", \"E\"]", "\"N\"", "\"S\"", "\"W\"", "\"E\"", "if len(s) != 2 and len(s) != 4:\n print(\"No\")\n exit()", "len(s) != 2 and len(s) != 4", "len(s) != 2", "len(s)", "len", "s", "2", "len(s) != 4", "len(s)", "len", "s", "4", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "for i in l:\n x = 0\n for j in s:\n if j in i:\n x += 1\n if x == len(i):\n print(\"Yes\")\n exit()", "i", "l", "x = 0", "x", "0", "for j in s:\n if j in i:\n x += 1\n ", "j", "s", "if j in i:\n x += 1\n ", "j in i", "j", "i", "x += 1", "x", "1", "if x == len(i):\n print(\"Yes\")\n exit()", "x == len(i)", "x", "len(i)", "len", "i", "print(\"Yes\")", "print", "\"Yes\"", "exit()", "exit", "print(\"No\")", "print", "\"No\"", "s = list(set(input()))", "list(set(input()))", "s", "x += 1", "1", "x", "l = [[\"N\",\"S\"], [\"W\",\"E\"], [\"N\", \"S\", \"W\", \"E\"]]", "[[\"N\",\"S\"], [\"W\",\"E\"], [\"N\", \"S\", \"W\", \"E\"]]", "l", "x = 0", "0", "x" ]
s = list(set(input())) l = [["N","S"], ["W","E"], ["N", "S", "W", "E"]] if len(s) != 2 and len(s) != 4: print("No") exit() for i in l: x = 0 for j in s: if j in i: x += 1 if x == len(i): print("Yes") exit() print("No")
[ 7, 0, 13, 4, 13, 12, 13, 29, 2, 2, 2, 13, 13, 40, 13, 13, 2, 2, 13, 13, 40, 13, 13, 23, 13, 23, 13, 14, 2, 4, 13, 17, 17, 4, 13, 17, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 12, 13 ]
[ [ 44, 2 ], [ 24, 11 ], [ 45, 12 ], [ 26, 14 ], [ 45, 15 ], [ 26, 18 ], [ 45, 19 ], [ 24, 21 ], [ 45, 22 ], [ 24, 24 ], [ 26, 26 ], [ 48, 30 ], [ 48, 34 ], [ 44, 45 ] ]
[ "s = input()\n\ndef f(a,b):\n return (a in s and b not in s) or (b in s and a not in s)\n \nif f('W', 'E') or f('N', 'S'):\n print('No')\nelse:\n print('Yes')\n", "s = input()", "s", "input()", "input", "def f(a,b):\n return (a in s and b not in s) or (b in s and a not in s)\n ", "f", "return (a in s and b not in s) or (b in s and a not in s)", "(a in s and b not in s) or (b in s and a not in s)", "a in s and b not in s", "a in s", "a", "s", "b not in s", "b", "s", "b in s and a not in s", "b in s", "b", "s", "a not in s", "a", "s", "a", "a", "b", "b", "if f('W', 'E') or f('N', 'S'):\n print('No')\nelse:\n print('Yes')", "f('W', 'E') or f('N', 'S')", "f('W', 'E')", "f", "'W'", "'E'", "f('N', 'S')", "f", "'N'", "'S'", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "s = input()", "input()", "s", "def f(a,b):\n return (a in s and b not in s) or (b in s and a not in s)\n ", "def f(a,b):\n return (a in s and b not in s) or (b in s and a not in s)\n ", "f" ]
s = input() def f(a,b): return (a in s and b not in s) or (b in s and a not in s) if f('W', 'E') or f('N', 'S'): print('No') else: print('Yes')
[ 7, 0, 13, 4, 13, 0, 13, 17, 14, 2, 2, 2, 17, 13, 40, 2, 17, 13, 2, 2, 17, 13, 40, 2, 17, 13, 0, 13, 17, 14, 2, 2, 2, 17, 13, 40, 2, 17, 13, 2, 2, 17, 13, 40, 2, 17, 13, 0, 13, 17, 14, 13, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 62, 2 ], [ 65, 6 ], [ 63, 13 ], [ 63, 17 ], [ 63, 21 ], [ 63, 25 ], [ 68, 27 ], [ 63, 34 ], [ 63, 38 ], [ 63, 42 ], [ 63, 46 ], [ 59, 48 ], [ 59, 60 ], [ 62, 63 ], [ 65, 66 ], [ 68, 69 ] ]
[ "s = input()\nans = True\n\nif 'N' in s and not('S' in s) or 'S' in s and not('N' in s):\n ans = False\nif 'E' in s and not('W' in s) or 'W' in s and not('E' in s):\n ans = False\nif ans:\n print(\"Yes\")\nelse:\n print(\"No\")", "s = input()", "s", "input()", "input", "ans = True", "ans", "True", "if 'N' in s and not('S' in s) or 'S' in s and not('N' in s):\n ans = False", "'N' in s and not('S' in s) or 'S' in s and not('N' in s)", "'N' in s and not('S' in s)", "'N' in s", "'N'", "s", "not('S' in s)", "'S' in s", "'S'", "s", "'S' in s and not('N' in s)", "'S' in s", "'S'", "s", "not('N' in s)", "'N' in s", "'N'", "s", "ans = False", "ans", "False", "if 'E' in s and not('W' in s) or 'W' in s and not('E' in s):\n ans = False", "'E' in s and not('W' in s) or 'W' in s and not('E' in s)", "'E' in s and not('W' in s)", "'E' in s", "'E'", "s", "not('W' in s)", "'W' in s", "'W'", "s", "'W' in s and not('E' in s)", "'W' in s", "'W'", "s", "not('E' in s)", "'E' in s", "'E'", "s", "ans = False", "ans", "False", "if ans:\n print(\"Yes\")\nelse:\n print(\"No\")", "ans", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "ans = False", "False", "ans", "s = input()", "input()", "s", "ans = True", "True", "ans", "ans = False", "False", "ans" ]
s = input() ans = True if 'N' in s and not('S' in s) or 'S' in s and not('N' in s): ans = False if 'E' in s and not('W' in s) or 'W' in s and not('E' in s): ans = False if ans: print("Yes") else: print("No")
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 15, 12, 13, 0, 13, 4, 18, 4, 13, 13, 29, 13, 12, 13, 0, 13, 4, 13, 13, 14, 2, 2, 40, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 40, 18, 13, 17, 17, 29, 17, 14, 2, 2, 40, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 40, 18, 13, 17, 17, 29, 17, 29, 17, 23, 13, 14, 2, 13, 17, 0, 13, 4, 13, 4, 13, 4, 13, 31, 13, 10, 4, 13, 10, 18, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 103, 4 ], [ 15, 14 ], [ 104, 18 ], [ 14, 21 ], [ 26, 25 ], [ 84, 28 ], [ 25, 34 ], [ 25, 39 ], [ 25, 45 ], [ 25, 50 ], [ 25, 60 ], [ 25, 65 ], [ 25, 71 ], [ 25, 76 ], [ 84, 84 ], [ 100, 90 ], [ 110, 92 ], [ 107, 96 ], [ 101, 98 ], [ 100, 101 ], [ 103, 104 ] ]
[ "import sys\ninput = sys.stdin.readline\nfrom collections import Counter\n\n\ndef read():\n S = input().strip()\n return S,\n\n\ndef solve(S):\n D = Counter(S)\n if D[\"N\"] != 0 and D[\"S\"] == 0 or D[\"N\"] == 0 and D[\"S\"] != 0:\n return \"No\"\n if D[\"E\"] != 0 and D[\"W\"] == 0 or D[\"E\"] == 0 and D[\"W\"] != 0:\n return \"No\"\n return \"Yes\"\n\n\nif __name__ == '__main__':\n inputs = read()\n print(solve(*inputs))", "import sys", "sys", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "from collections import Counter", "def read():\n S = input().strip()\n return S,", "read", "S = input().strip()", "S", "input().strip()", "().strip", "()", "input", "strip", "return S,", "S", "def solve(S):\n D = Counter(S)\n if D[\"N\"] != 0 and D[\"S\"] == 0 or D[\"N\"] == 0 and D[\"S\"] != 0:\n return \"No\"\n if D[\"E\"] != 0 and D[\"W\"] == 0 or D[\"E\"] == 0 and D[\"W\"] != 0:\n return \"No\"\n return \"Yes\"", "solve", "D = Counter(S)", "D", "Counter(S)", "Counter", "S", "if D[\"N\"] != 0 and D[\"S\"] == 0 or D[\"N\"] == 0 and D[\"S\"] != 0:\n return \"No\"\n ", "D[\"N\"] != 0 and D[\"S\"] == 0 or D[\"N\"] == 0 and D[\"S\"] != 0", "D[\"N\"] != 0 and D[\"S\"] == 0", "D[\"N\"] != 0", "D[\"N\"]", "D", "\"N\"", "0", "D[\"S\"] == 0", "D[\"S\"]", "D", "\"S\"", "0", "D[\"N\"] == 0 and D[\"S\"] != 0", "D[\"N\"] == 0", "D[\"N\"]", "D", "\"N\"", "0", "D[\"S\"] != 0", "D[\"S\"]", "D", "\"S\"", "0", "return \"No\"", "\"No\"", "if D[\"E\"] != 0 and D[\"W\"] == 0 or D[\"E\"] == 0 and D[\"W\"] != 0:\n return \"No\"\n ", "D[\"E\"] != 0 and D[\"W\"] == 0 or D[\"E\"] == 0 and D[\"W\"] != 0", "D[\"E\"] != 0 and D[\"W\"] == 0", "D[\"E\"] != 0", "D[\"E\"]", "D", "\"E\"", "0", "D[\"W\"] == 0", "D[\"W\"]", "D", "\"W\"", "0", "D[\"E\"] == 0 and D[\"W\"] != 0", "D[\"E\"] == 0", "D[\"E\"]", "D", "\"E\"", "0", "D[\"W\"] != 0", "D[\"W\"]", "D", "\"W\"", "0", "return \"No\"", "\"No\"", "return \"Yes\"", "\"Yes\"", "S", "S", "if __name__ == '__main__':\n inputs = read()\n print(solve(*inputs))", "__name__ == '__main__'", "__name__", "'__main__'", "inputs = read()", "inputs", "read()", "read", "print(solve(*inputs))", "print", "solve(*inputs)", "solve", "*inputs", "inputs", "inputs = read()", "read()", "inputs", "input = sys.stdin.readline", "sys.stdin.readline", "input", "def solve(S):\n D = Counter(S)\n if D[\"N\"] != 0 and D[\"S\"] == 0 or D[\"N\"] == 0 and D[\"S\"] != 0:\n return \"No\"\n if D[\"E\"] != 0 and D[\"W\"] == 0 or D[\"E\"] == 0 and D[\"W\"] != 0:\n return \"No\"\n return \"Yes\"", "def solve(S):\n D = Counter(S)\n if D[\"N\"] != 0 and D[\"S\"] == 0 or D[\"N\"] == 0 and D[\"S\"] != 0:\n return \"No\"\n if D[\"E\"] != 0 and D[\"W\"] == 0 or D[\"E\"] == 0 and D[\"W\"] != 0:\n return \"No\"\n return \"Yes\"", "solve", "def read():\n S = input().strip()\n return S,", "def read():\n S = input().strip()\n return S,", "read" ]
import sys input = sys.stdin.readline from collections import Counter def read(): S = input().strip() return S, def solve(S): D = Counter(S) if D["N"] != 0 and D["S"] == 0 or D["N"] == 0 and D["S"] != 0: return "No" if D["E"] != 0 and D["W"] == 0 or D["E"] == 0 and D["W"] != 0: return "No" return "Yes" if __name__ == '__main__': inputs = read() print(solve(*inputs))
[ 7, 0, 13, 4, 13, 14, 2, 17, 13, 14, 2, 17, 13, 4, 13, 17, 4, 13, 14, 2, 17, 13, 14, 2, 17, 13, 4, 13, 17, 4, 13, 14, 2, 17, 13, 14, 2, 17, 13, 4, 13, 17, 4, 13, 14, 2, 17, 13, 14, 2, 17, 13, 4, 13, 17, 4, 13, 4, 13, 17, 10, 4, 13 ]
[ [ 61, 2 ], [ 62, 8 ], [ 62, 12 ], [ 62, 21 ], [ 62, 25 ], [ 62, 34 ], [ 62, 38 ], [ 62, 47 ], [ 62, 51 ], [ 61, 62 ] ]
[ "s=input()\nif \"N\" in s:\n if \"S\" in s:\n pass\n else:\n print(\"No\")\n exit()\nif \"E\" in s:\n if \"W\" in s:\n pass\n else:\n print(\"No\")\n exit()\nif \"S\" in s:\n if \"N\" in s:\n pass\n else:\n print(\"No\")\n exit()\nif \"W\" in s:\n if \"E\" in s:\n pass\n else:\n print(\"No\")\n exit()\nprint(\"Yes\")", "s=input()", "s", "input()", "input", "if \"N\" in s:\n if \"S\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"N\" in s", "\"N\"", "s", "if \"S\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"S\" in s", "\"S\"", "s", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "if \"E\" in s:\n if \"W\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"E\" in s", "\"E\"", "s", "if \"W\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"W\" in s", "\"W\"", "s", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "if \"S\" in s:\n if \"N\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"S\" in s", "\"S\"", "s", "if \"N\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"N\" in s", "\"N\"", "s", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "if \"W\" in s:\n if \"E\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"W\" in s", "\"W\"", "s", "if \"E\" in s:\n pass\n else:\n print(\"No\")\n exit()", "\"E\" in s", "\"E\"", "s", "print(\"No\")", "print", "\"No\"", "exit()", "exit", "print(\"Yes\")", "print", "\"Yes\"", "s=input()", "input()", "s" ]
s=input() if "N" in s: if "S" in s: pass else: print("No") exit() if "E" in s: if "W" in s: pass else: print("No") exit() if "S" in s: if "N" in s: pass else: print("No") exit() if "W" in s: if "E" in s: pass else: print("No") exit() print("Yes")
[ 7, 0, 13, 4, 13, 14, 2, 17, 13, 14, 40, 17, 13, 4, 13, 17, 4, 13, 14, 40, 17, 13, 14, 2, 17, 13, 4, 13, 17, 4, 13, 14, 40, 17, 13, 14, 2, 17, 13, 4, 13, 17, 4, 13, 14, 2, 17, 13, 14, 40, 17, 13, 4, 13, 17, 4, 13, 4, 13, 17, 10, 4, 13 ]
[ [ 61, 2 ], [ 62, 8 ], [ 62, 12 ], [ 62, 21 ], [ 62, 25 ], [ 62, 34 ], [ 62, 38 ], [ 62, 47 ], [ 62, 51 ], [ 61, 62 ] ]
[ "s = input()\nif 'E' in s:\n if 'W' not in s:\n print('No')\n exit()\nif 'E' not in s:\n if 'W' in s:\n print('No')\n exit()\nif 'N' not in s:\n if 'S' in s:\n print('No')\n exit()\nif 'N' in s:\n if 'S' not in s:\n print('No')\n exit()\nprint('Yes')", "s = input()", "s", "input()", "input", "if 'E' in s:\n if 'W' not in s:\n print('No')\n exit()", "'E' in s", "'E'", "s", "if 'W' not in s:\n print('No')\n exit()", "'W' not in s", "'W'", "s", "print('No')", "print", "'No'", "exit()", "exit", "if 'E' not in s:\n if 'W' in s:\n print('No')\n exit()", "'E' not in s", "'E'", "s", "if 'W' in s:\n print('No')\n exit()", "'W' in s", "'W'", "s", "print('No')", "print", "'No'", "exit()", "exit", "if 'N' not in s:\n if 'S' in s:\n print('No')\n exit()", "'N' not in s", "'N'", "s", "if 'S' in s:\n print('No')\n exit()", "'S' in s", "'S'", "s", "print('No')", "print", "'No'", "exit()", "exit", "if 'N' in s:\n if 'S' not in s:\n print('No')\n exit()", "'N' in s", "'N'", "s", "if 'S' not in s:\n print('No')\n exit()", "'S' not in s", "'S'", "s", "print('No')", "print", "'No'", "exit()", "exit", "print('Yes')", "print", "'Yes'", "s = input()", "input()", "s" ]
s = input() if 'E' in s: if 'W' not in s: print('No') exit() if 'E' not in s: if 'W' in s: print('No') exit() if 'N' not in s: if 'S' in s: print('No') exit() if 'N' in s: if 'S' not in s: print('No') exit() print('Yes')
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 13, 4, 18, 13, 13, 17, 13, 4, 18, 13, 13, 17, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 78, 2 ], [ 75, 6 ], [ 79, 9 ], [ 81, 12 ], [ 76, 15 ], [ 79, 15 ], [ 72, 18 ], [ 76, 21 ], [ 79, 21 ], [ 84, 24 ], [ 76, 27 ], [ 79, 27 ], [ 76, 34 ], [ 79, 34 ], [ 82, 37 ], [ 76, 41 ], [ 79, 41 ], [ 82, 44 ], [ 73, 53 ], [ 85, 56 ], [ 73, 60 ], [ 85, 63 ], [ 72, 73 ], [ 75, 76 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ] ]
[ "s = input()\ns,n,e,w = s.count(\"S\"),s.count(\"N\"),s.count(\"E\"),s.count(\"W\")\nif (s > 0 and n == 0) or (s == 0 and n > 0):\n print(\"No\")\nelif (e > 0 and w == 0) or (e == 0 and w > 0):\n print(\"No\")\nelse:\n print(\"Yes\")", "s = input()", "s", "input()", "input", "s,n,e,w = s.count(\"S\"),s.count(\"N\"),s.count(\"E\"),s.count(\"W\")", "s", "s.count(\"S\")", "s.count", "s", "count", "\"S\"", "n", "s.count(\"N\")", "s.count", "s", "count", "\"N\"", "e", "s.count(\"E\")", "s.count", "s", "count", "\"E\"", "w", "s.count(\"W\")", "s.count", "s", "count", "\"W\"", "if (s > 0 and n == 0) or (s == 0 and n > 0):\n print(\"No\")\nelif (e > 0 and w == 0) or (e == 0 and w > 0):\n print(\"No\")\nelse:\n print(\"Yes\")", "(s > 0 and n == 0) or (s == 0 and n > 0)", "s > 0 and n == 0", "s > 0", "s", "0", "n == 0", "n", "0", "s == 0 and n > 0", "s == 0", "s", "0", "n > 0", "n", "0", "print(\"No\")", "print", "\"No\"", "elif (e > 0 and w == 0) or (e == 0 and w > 0):\n print(\"No\")", "(e > 0 and w == 0) or (e == 0 and w > 0)", "e > 0 and w == 0", "e > 0", "e", "0", "w == 0", "w", "0", "e == 0 and w > 0", "e == 0", "e", "0", "w > 0", "w", "0", "print(\"No\")", "print", "\"No\"", "print(\"Yes\")", "print", "\"Yes\"", "e,w = s.count(\"S\"),s.count(\"N\"),s.count(\"E\"),s.count(\"W\")", "s.count(\"E\")", "e", "s,n,e,w = s.count(\"S\"),s.count(\"N\"),s.count(\"E\"),s.count(\"W\")", "s.count(\"S\")", "s", "s = input()", "input()", "s", "n,e,w = s.count(\"S\"),s.count(\"N\"),s.count(\"E\"),s.count(\"W\")", "s.count(\"N\")", "n", "w = s.count(\"S\"),s.count(\"N\"),s.count(\"E\"),s.count(\"W\")", "s.count(\"W\")", "w" ]
s = input() s,n,e,w = s.count("S"),s.count("N"),s.count("E"),s.count("W") if (s > 0 and n == 0) or (s == 0 and n > 0): print("No") elif (e > 0 and w == 0) or (e == 0 and w > 0): print("No") else: print("Yes")
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 14, 2, 2, 4, 13, 13, 17, 17, 14, 2, 2, 2, 17, 13, 2, 17, 13, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 45, 2 ], [ 46, 16 ], [ 46, 24 ], [ 46, 27 ], [ 46, 31 ], [ 46, 34 ], [ 45, 46 ] ]
[ "s = list(set(list(input())))\n\nif len(s)%2 == 0:\n if (\"N\" in s and\"S\" in s) or (\"E\" in s and \"W\" in s):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "s = list(set(list(input())))", "s", "list(set(list(input())))", "list", "set(list(input()))", "set", "list(input())", "list", "input()", "input", "if len(s)%2 == 0:\n if (\"N\" in s and\"S\" in s) or (\"E\" in s and \"W\" in s):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "len(s)%2 == 0", "len(s)%2", "len(s)", "len", "s", "2", "0", "if (\"N\" in s and\"S\" in s) or (\"E\" in s and \"W\" in s):\n print('Yes')\n else:\n print('No')", "(\"N\" in s and\"S\" in s) or (\"E\" in s and \"W\" in s)", "\"N\" in s and\"S\" in s", "\"N\" in s", "\"N\"", "s", "\"S\" in s", "\"S\"", "s", "\"E\" in s and \"W\" in s", "\"E\" in s", "\"E\"", "s", "\"W\" in s", "\"W\"", "s", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "s = list(set(list(input())))", "list(set(list(input())))", "s" ]
s = list(set(list(input()))) if len(s)%2 == 0: if ("N" in s and"S" in s) or ("E" in s and "W" in s): print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 41, 2 ], [ 44, 8 ], [ 38, 11 ], [ 35, 14 ], [ 42, 20 ], [ 45, 21 ], [ 42, 23 ], [ 39, 24 ], [ 42, 26 ], [ 36, 27 ], [ 35, 36 ], [ 38, 39 ], [ 41, 42 ], [ 44, 45 ] ]
[ "# coding: utf-8\nS = set(input())\ni = {'N', 'S'}\nj = {'W', 'E'}\nk = {'N', 'S', 'W', 'E'}\nif S == i or S == j or S == k:\n print('Yes')\nelse:\n print('No')", "S = set(input())", "S", "set(input())", "set", "input()", "input", "i = {'N', 'S'}", "i", "{'N', 'S'}", "j = {'W', 'E'}", "j", "{'W', 'E'}", "k = {'N', 'S', 'W', 'E'}", "k", "{'N', 'S', 'W', 'E'}", "if S == i or S == j or S == k:\n print('Yes')\nelse:\n print('No')", "S == i or S == j or S == k", "S == i or S == j", "S == i", "S", "i", "S == j", "S", "j", "S == k", "S", "k", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "k = {'N', 'S', 'W', 'E'}", "{'N', 'S', 'W', 'E'}", "k", "j = {'W', 'E'}", "{'W', 'E'}", "j", "S = set(input())", "set(input())", "S", "i = {'N', 'S'}", "{'N', 'S'}", "i" ]
# coding: utf-8 S = set(input()) i = {'N', 'S'} j = {'W', 'E'} k = {'N', 'S', 'W', 'E'} if S == i or S == j or S == k: print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 2, 17, 13, 13, 2, 17, 13, 13, 2, 17, 13, 13, 2, 17, 13, 4, 13, 8, 2, 2, 13, 13, 2, 13, 13, 17, 17, 10, 2, 13, 10, 4, 13, 10, 2, 13, 10, 2, 13, 10, 2, 13 ]
[ [ 40, 2 ], [ 46, 8 ], [ 41, 11 ], [ 37, 12 ], [ 41, 15 ], [ 43, 16 ], [ 41, 19 ], [ 49, 20 ], [ 41, 23 ], [ 47, 29 ], [ 50, 30 ], [ 44, 32 ], [ 38, 33 ], [ 37, 38 ], [ 40, 41 ], [ 43, 44 ], [ 46, 47 ], [ 49, 50 ] ]
[ "# https://atcoder.jp/contests/agc003/tasks/agc003_a\nS = str(input())\nn,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S\nprint('Yes' if n == s and e == w else 'No')", "S = str(input())", "S", "str(input())", "str", "input()", "input", "n,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "n", "'N' in S", "'N'", "S", "w", "'W' in S", "'W'", "S", "e", "'E' in S", "'E'", "S", "s", "'S' in S", "'S'", "S", "print('Yes' if n == s and e == w else 'No')", "print", "'Yes' if n == s and e == w else 'No'", "n == s and e == w", "n == s", "n", "s", "e == w", "e", "w", "'Yes'", "'No'", "w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'W' in S", "w", "S = str(input())", "str(input())", "S", "e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'E' in S", "e", "n,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'N' in S", "n", "s = 'N' in S, 'W' in S, 'E' in S, 'S' in S", "'S' in S", "s" ]
# https://atcoder.jp/contests/agc003/tasks/agc003_a S = str(input()) n,w,e,s = 'N' in S, 'W' in S, 'E' in S, 'S' in S print('Yes' if n == s and e == w else 'No')
[ 7, 0, 13, 4, 13, 0, 13, 2, 2, 2, 17, 13, 2, 17, 13, 2, 40, 17, 13, 40, 17, 13, 0, 13, 2, 2, 2, 17, 13, 2, 17, 13, 2, 40, 17, 13, 40, 17, 13, 8, 2, 13, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 2, 13, 10, 2, 13 ]
[ [ 50, 2 ], [ 53, 6 ], [ 51, 11 ], [ 51, 14 ], [ 51, 18 ], [ 51, 21 ], [ 56, 23 ], [ 51, 28 ], [ 51, 31 ], [ 51, 35 ], [ 51, 38 ], [ 54, 41 ], [ 57, 42 ], [ 50, 51 ], [ 53, 54 ], [ 56, 57 ] ]
[ "S = input()\n\nNS = ((\"S\" in S) & (\"N\" in S)) | ((\"S\" not in S) & (\"N\" not in S))\nEW = ((\"E\" in S) & (\"W\" in S)) | ((\"E\" not in S) & (\"W\" not in S))\n\nprint(\"Yes\") if NS & EW else print(\"No\")", "S = input()", "S", "input()", "input", "NS = ((\"S\" in S) & (\"N\" in S)) | ((\"S\" not in S) & (\"N\" not in S))", "NS", "((\"S\" in S) & (\"N\" in S)) | ((\"S\" not in S) & (\"N\" not in S))", "(\"S\" in S) & (\"N\" in S)", "\"S\" in S", "\"S\"", "S", "\"N\" in S", "\"N\"", "S", "(\"S\" not in S) & (\"N\" not in S)", "\"S\" not in S", "\"S\"", "S", "\"N\" not in S", "\"N\"", "S", "EW = ((\"E\" in S) & (\"W\" in S)) | ((\"E\" not in S) & (\"W\" not in S))", "EW", "((\"E\" in S) & (\"W\" in S)) | ((\"E\" not in S) & (\"W\" not in S))", "(\"E\" in S) & (\"W\" in S)", "\"E\" in S", "\"E\"", "S", "\"W\" in S", "\"W\"", "S", "(\"E\" not in S) & (\"W\" not in S)", "\"E\" not in S", "\"E\"", "S", "\"W\" not in S", "\"W\"", "S", "print(\"Yes\") if NS & EW else print(\"No\")", "NS & EW", "NS", "EW", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "S = input()", "input()", "S", "NS = ((\"S\" in S) & (\"N\" in S)) | ((\"S\" not in S) & (\"N\" not in S))", "((\"S\" in S) & (\"N\" in S)) | ((\"S\" not in S) & (\"N\" not in S))", "NS", "EW = ((\"E\" in S) & (\"W\" in S)) | ((\"E\" not in S) & (\"W\" not in S))", "((\"E\" in S) & (\"W\" in S)) | ((\"E\" not in S) & (\"W\" not in S))", "EW" ]
S = input() NS = (("S" in S) & ("N" in S)) | (("S" not in S) & ("N" not in S)) EW = (("E" in S) & ("W" in S)) | (("E" not in S) & ("W" not in S)) print("Yes") if NS & EW else print("No")
[ 7, 15, 0, 13, 4, 13, 0, 13, 4, 13, 13, 14, 40, 2, 4, 13, 13, 17, 17, 4, 13, 17, 4, 13, 14, 2, 4, 13, 13, 17, 4, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 62, 3 ], [ 59, 7 ], [ 63, 10 ], [ 60, 16 ], [ 63, 28 ], [ 63, 37 ], [ 63, 40 ], [ 63, 48 ], [ 63, 51 ], [ 59, 60 ], [ 62, 63 ] ]
[ "from collections import Counter\ns = input()\nC = Counter(s)\nif len(C) % 2 != 0:\n print('No')\n exit()\nelse:\n if len(s) == 4:\n print('Yes')\n else:\n if 'N' in s and 'S' in s:\n print('Yes')\n elif 'E' in s and 'W' in s:\n print('Yes')\n else:\n print('No')", "from collections import Counter", "s = input()", "s", "input()", "input", "C = Counter(s)", "C", "Counter(s)", "Counter", "s", "if len(C) % 2 != 0:\n print('No')\n exit()\nelse:\n if len(s) == 4:\n print('Yes')\n else:\n if 'N' in s and 'S' in s:\n print('Yes')\n elif 'E' in s and 'W' in s:\n print('Yes')\n else:\n print('No')", "len(C) % 2 != 0", "len(C) % 2", "len(C)", "len", "C", "2", "0", "print('No')", "print", "'No'", "exit()", "exit", "if len(s) == 4:\n print('Yes')\n else:\n if 'N' in s and 'S' in s:\n print('Yes')\n elif 'E' in s and 'W' in s:\n print('Yes')\n else:\n print('No')", "len(s) == 4", "len(s)", "len", "s", "4", "print('Yes')", "print", "'Yes'", "if 'N' in s and 'S' in s:\n print('Yes')\n elif 'E' in s and 'W' in s:\n print('Yes')\n else:\n print('No')", "'N' in s and 'S' in s", "'N' in s", "'N'", "s", "'S' in s", "'S'", "s", "print('Yes')", "print", "'Yes'", "elif 'E' in s and 'W' in s:\n print('Yes')\n ", "'E' in s and 'W' in s", "'E' in s", "'E'", "s", "'W' in s", "'W'", "s", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "C = Counter(s)", "Counter(s)", "C", "s = input()", "input()", "s" ]
from collections import Counter s = input() C = Counter(s) if len(C) % 2 != 0: print('No') exit() else: if len(s) == 4: print('Yes') else: if 'N' in s and 'S' in s: print('Yes') elif 'E' in s and 'W' in s: print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 14, 4, 13, 2, 13, 4, 13, 4, 13, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 26, 2 ], [ 27, 13 ], [ 26, 27 ] ]
[ "s = set(list(input()))\nif any(s==set(list(cand)) for cand in ['NS','EW','NEWS']):\n print('Yes')\nelse:\n print('No')", "s = set(list(input()))", "s", "set(list(input()))", "set", "list(input())", "list", "input()", "input", "if any(s==set(list(cand)) for cand in ['NS','EW','NEWS']):\n print('Yes')\nelse:\n print('No')", "any(s==set(list(cand)) for cand in ['NS','EW','NEWS'])", "any", "s==set(list(cand))", "s", "set(list(cand))", "set", "list(cand)", "list", "cand", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "s = set(list(input()))", "set(list(input()))", "s" ]
s = set(list(input())) if any(s==set(list(cand)) for cand in ['NS','EW','NEWS']): print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 14, 2, 2, 2, 17, 13, 2, 17, 13, 2, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 32, 2 ], [ 33, 14 ], [ 33, 17 ], [ 33, 21 ], [ 33, 24 ], [ 32, 33 ] ]
[ "# -*- coding: utf-8 -*-\n\ns=set(list(input()))\n\nif ('N' in s)==('S' in s) and ('W' in s)==('E' in s):\n print(\"Yes\")\nelse:\n print(\"No\")", "s=set(list(input()))", "s", "set(list(input()))", "set", "list(input())", "list", "input()", "input", "if ('N' in s)==('S' in s) and ('W' in s)==('E' in s):\n print(\"Yes\")\nelse:\n print(\"No\")", "('N' in s)==('S' in s) and ('W' in s)==('E' in s)", "('N' in s)==('S' in s)", "'N' in s", "'N'", "s", "'S' in s", "'S'", "s", "('W' in s)==('E' in s)", "'W' in s", "'W'", "s", "'E' in s", "'E'", "s", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "s=set(list(input()))", "set(list(input()))", "s" ]
# -*- coding: utf-8 -*- s=set(list(input())) if ('N' in s)==('S' in s) and ('W' in s)==('E' in s): print("Yes") else: print("No")
[ 7, 15, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 17, 14, 2, 4, 13, 13, 17, 0, 13, 17, 14, 2, 4, 13, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 0, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 60, 3 ], [ 66, 9 ], [ 61, 12 ], [ 57, 14 ], [ 67, 20 ], [ 61, 20 ], [ 63, 23 ], [ 67, 29 ], [ 61, 29 ], [ 67, 35 ], [ 61, 35 ], [ 67, 38 ], [ 61, 38 ], [ 72, 40 ], [ 67, 46 ], [ 61, 46 ], [ 67, 49 ], [ 61, 49 ], [ 69, 51 ], [ 70, 55 ], [ 73, 55 ], [ 64, 55 ], [ 58, 55 ], [ 57, 58 ], [ 60, 61 ], [ 63, 64 ], [ 66, 67 ], [ 69, 70 ], [ 72, 73 ] ]
[ "from collections import Counter\nS = list(input())\nS = Counter(S)\nans = \"No\"\nif len(S) == 4:\n ans = \"Yes\"\nelif len(S) == 2:\n if \"N\" in S and \"S\" in S:\n ans = \"Yes\"\n if \"W\" in S and \"E\" in S:\n ans = \"Yes\"\nprint(ans)\n", "from collections import Counter", "S = list(input())", "S", "list(input())", "list", "input()", "input", "S = Counter(S)", "S", "Counter(S)", "Counter", "S", "ans = \"No\"", "ans", "\"No\"", "if len(S) == 4:\n ans = \"Yes\"\nelif len(S) == 2:\n if \"N\" in S and \"S\" in S:\n ans = \"Yes\"\n if \"W\" in S and \"E\" in S:\n ans = \"Yes\"", "len(S) == 4", "len(S)", "len", "S", "4", "ans = \"Yes\"", "ans", "\"Yes\"", "elif len(S) == 2:\n if \"N\" in S and \"S\" in S:\n ans = \"Yes\"\n if \"W\" in S and \"E\" in S:\n ans = \"Yes\"", "len(S) == 2", "len(S)", "len", "S", "2", "if \"N\" in S and \"S\" in S:\n ans = \"Yes\"\n ", "\"N\" in S and \"S\" in S", "\"N\" in S", "\"N\"", "S", "\"S\" in S", "\"S\"", "S", "ans = \"Yes\"", "ans", "\"Yes\"", "if \"W\" in S and \"E\" in S:\n ans = \"Yes\"", "\"W\" in S and \"E\" in S", "\"W\" in S", "\"W\"", "S", "\"E\" in S", "\"E\"", "S", "ans = \"Yes\"", "ans", "\"Yes\"", "print(ans)", "print", "ans", "ans = \"No\"", "\"No\"", "ans", "S = list(input())", "list(input())", "S", "ans = \"Yes\"", "\"Yes\"", "ans", "S = Counter(S)", "Counter(S)", "S", "ans = \"Yes\"", "\"Yes\"", "ans", "ans = \"Yes\"", "\"Yes\"", "ans" ]
from collections import Counter S = list(input()) S = Counter(S) ans = "No" if len(S) == 4: ans = "Yes" elif len(S) == 2: if "N" in S and "S" in S: ans = "Yes" if "W" in S and "E" in S: ans = "Yes" print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 98, 2 ], [ 110, 8 ], [ 104, 11 ], [ 89, 14 ], [ 92, 17 ], [ 21, 20 ], [ 99, 20 ], [ 20, 24 ], [ 113, 27 ], [ 20, 31 ], [ 95, 34 ], [ 20, 38 ], [ 107, 41 ], [ 20, 45 ], [ 101, 48 ], [ 114, 56 ], [ 111, 56 ], [ 96, 59 ], [ 105, 59 ], [ 114, 63 ], [ 111, 63 ], [ 96, 66 ], [ 105, 66 ], [ 108, 70 ], [ 90, 70 ], [ 102, 73 ], [ 93, 73 ], [ 108, 77 ], [ 90, 77 ], [ 102, 80 ], [ 93, 80 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ], [ 113, 114 ] ]
[ "a=list(input())\n\nn = 0\n\ns = 0\n\ne = 0\n\nw = 0\n\nfor i in a:\n if i == 'N':\n n += 1\n elif i == 'S':\n s += 1\n elif i == 'E':\n e += 1\n elif i == 'W':\n w += 1\n\nif n > 0 and s == 0 or n == 0 and s > 0 or e > 0 and w == 0 or e == 0 and w > 0:\n print('No')\nelse:\n print('Yes')", "a=list(input())", "a", "list(input())", "list", "input()", "input", "n = 0", "n", "0", "s = 0", "s", "0", "e = 0", "e", "0", "w = 0", "w", "0", "for i in a:\n if i == 'N':\n n += 1\n elif i == 'S':\n s += 1\n elif i == 'E':\n e += 1\n elif i == 'W':\n w += 1", "i", "a", "if i == 'N':\n n += 1\n elif i == 'S':\n s += 1\n elif i == 'E':\n e += 1\n elif i == 'W':\n w += 1", "i == 'N'", "i", "'N'", "n += 1", "n", "1", "elif i == 'S':\n s += 1\n ", "i == 'S'", "i", "'S'", "s += 1", "s", "1", "elif i == 'E':\n e += 1\n ", "i == 'E'", "i", "'E'", "e += 1", "e", "1", "elif i == 'W':\n w += 1", "i == 'W'", "i", "'W'", "w += 1", "w", "1", "if n > 0 and s == 0 or n == 0 and s > 0 or e > 0 and w == 0 or e == 0 and w > 0:\n print('No')\nelse:\n print('Yes')", "n > 0 and s == 0 or n == 0 and s > 0 or e > 0 and w == 0 or e == 0 and w > 0", "n > 0 and s == 0 or n == 0 and s > 0 or e > 0 and w == 0", "n > 0 and s == 0 or n == 0 and s > 0", "n > 0 and s == 0", "n > 0", "n", "0", "s == 0", "s", "0", "n == 0 and s > 0", "n == 0", "n", "0", "s > 0", "s", "0", "e > 0 and w == 0", "e > 0", "e", "0", "w == 0", "w", "0", "e == 0 and w > 0", "e == 0", "e", "0", "w > 0", "w", "0", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "e = 0", "0", "e", "w = 0", "0", "w", "s += 1", "1", "s", "a=list(input())", "list(input())", "a", "w += 1", "1", "w", "s = 0", "0", "s", "e += 1", "1", "e", "n = 0", "0", "n", "n += 1", "1", "n" ]
a=list(input()) n = 0 s = 0 e = 0 w = 0 for i in a: if i == 'N': n += 1 elif i == 'S': s += 1 elif i == 'E': e += 1 elif i == 'W': w += 1 if n > 0 and s == 0 or n == 0 and s > 0 or e > 0 and w == 0 or e == 0 and w > 0: print('No') else: print('Yes')
[ 7, 0, 13, 4, 13, 12, 13, 0, 13, 4, 13, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 39, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 13, 0, 13, 17, 4, 18, 13, 13, 13, 14, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 29, 4, 13, 17, 29, 23, 13, 4, 13, 13, 10, 4, 13, 10, 12, 13 ]
[ [ 128, 2 ], [ 9, 8 ], [ 123, 11 ], [ 14, 13 ], [ 17, 16 ], [ 20, 19 ], [ 23, 22 ], [ 26, 25 ], [ 29, 28 ], [ 8, 31 ], [ 123, 35 ], [ 28, 36 ], [ 40, 39 ], [ 25, 43 ], [ 39, 45 ], [ 19, 45 ], [ 123, 49 ], [ 28, 50 ], [ 54, 53 ], [ 25, 57 ], [ 53, 59 ], [ 22, 59 ], [ 123, 63 ], [ 28, 64 ], [ 68, 67 ], [ 25, 71 ], [ 67, 73 ], [ 13, 73 ], [ 76, 75 ], [ 25, 79 ], [ 75, 81 ], [ 16, 81 ], [ 39, 88 ], [ 19, 88 ], [ 53, 91 ], [ 22, 91 ], [ 39, 95 ], [ 19, 95 ], [ 53, 98 ], [ 22, 98 ], [ 67, 102 ], [ 13, 102 ], [ 75, 105 ], [ 16, 105 ], [ 67, 109 ], [ 13, 109 ], [ 75, 112 ], [ 16, 112 ], [ 123, 123 ], [ 132, 125 ], [ 129, 126 ], [ 128, 129 ] ]
[ "s = input()\n\n\ndef walk(s):\n ls = len(s)\n nc = 0\n sc = 0\n wc = 0\n ec = 0\n l=[]\n for i in range(ls):\n if s[i] == \"W\":\n wc += 1\n l.append(wc)\n elif s[i] == \"E\":\n ec += 1\n l.append(ec)\n elif s[i] == \"N\":\n nc += 1\n l.append(nc)\n else:\n sc += 1\n l.append(sc)\n if (wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0) or (nc>0 and sc==0):\n print(\"No\")\n return\n \n else:\n print(\"Yes\")\n return\nwalk(s)", "s = input()", "s", "input()", "input", "def walk(s):\n ls = len(s)\n nc = 0\n sc = 0\n wc = 0\n ec = 0\n l=[]\n for i in range(ls):\n if s[i] == \"W\":\n wc += 1\n l.append(wc)\n elif s[i] == \"E\":\n ec += 1\n l.append(ec)\n elif s[i] == \"N\":\n nc += 1\n l.append(nc)\n else:\n sc += 1\n l.append(sc)\n if (wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0) or (nc>0 and sc==0):\n print(\"No\")\n return\n \n else:\n print(\"Yes\")\n return", "walk", "ls = len(s)", "ls", "len(s)", "len", "s", "nc = 0", "nc", "0", "sc = 0", "sc", "0", "wc = 0", "wc", "0", "ec = 0", "ec", "0", "l=[]", "l", "[]", "for i in range(ls):\n if s[i] == \"W\":\n wc += 1\n l.append(wc)\n elif s[i] == \"E\":\n ec += 1\n l.append(ec)\n elif s[i] == \"N\":\n nc += 1\n l.append(nc)\n else:\n sc += 1\n l.append(sc)\n ", "i", "range(ls)", "range", "ls", "if s[i] == \"W\":\n wc += 1\n l.append(wc)\n elif s[i] == \"E\":\n ec += 1\n l.append(ec)\n elif s[i] == \"N\":\n nc += 1\n l.append(nc)\n else:\n sc += 1\n l.append(sc)\n ", "s[i] == \"W\"", "s[i]", "s", "i", "\"W\"", "wc += 1", "wc", "1", "l.append(wc)", "l.append", "l", "append", "wc", "elif s[i] == \"E\":\n ec += 1\n l.append(ec)\n ", "s[i] == \"E\"", "s[i]", "s", "i", "\"E\"", "ec += 1", "ec", "1", "l.append(ec)", "l.append", "l", "append", "ec", "elif s[i] == \"N\":\n nc += 1\n l.append(nc)\n ", "s[i] == \"N\"", "s[i]", "s", "i", "\"N\"", "nc += 1", "nc", "1", "l.append(nc)", "l.append", "l", "append", "nc", "sc += 1", "sc", "1", "l.append(sc)", "l.append", "l", "append", "sc", "if (wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0) or (nc>0 and sc==0):\n print(\"No\")\n return\n \n else:\n print(\"Yes\")\n return", "(wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0) or (nc>0 and sc==0)", "(wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0)", "(wc>0 and ec==0) or (wc==0 and ec>0)", "wc>0 and ec==0", "wc>0", "wc", "0", "ec==0", "ec", "0", "wc==0 and ec>0", "wc==0", "wc", "0", "ec>0", "ec", "0", "nc==0 and sc>0", "nc==0", "nc", "0", "sc>0", "sc", "0", "nc>0 and sc==0", "nc>0", "nc", "0", "sc==0", "sc", "0", "print(\"No\")", "print", "\"No\"", "return", "print(\"Yes\")", "print", "\"Yes\"", "return", "s", "s", "walk(s)", "walk", "s", "s = input()", "input()", "s", "def walk(s):\n ls = len(s)\n nc = 0\n sc = 0\n wc = 0\n ec = 0\n l=[]\n for i in range(ls):\n if s[i] == \"W\":\n wc += 1\n l.append(wc)\n elif s[i] == \"E\":\n ec += 1\n l.append(ec)\n elif s[i] == \"N\":\n nc += 1\n l.append(nc)\n else:\n sc += 1\n l.append(sc)\n if (wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0) or (nc>0 and sc==0):\n print(\"No\")\n return\n \n else:\n print(\"Yes\")\n return", "def walk(s):\n ls = len(s)\n nc = 0\n sc = 0\n wc = 0\n ec = 0\n l=[]\n for i in range(ls):\n if s[i] == \"W\":\n wc += 1\n l.append(wc)\n elif s[i] == \"E\":\n ec += 1\n l.append(ec)\n elif s[i] == \"N\":\n nc += 1\n l.append(nc)\n else:\n sc += 1\n l.append(sc)\n if (wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0) or (nc>0 and sc==0):\n print(\"No\")\n return\n \n else:\n print(\"Yes\")\n return", "walk" ]
s = input() def walk(s): ls = len(s) nc = 0 sc = 0 wc = 0 ec = 0 l=[] for i in range(ls): if s[i] == "W": wc += 1 l.append(wc) elif s[i] == "E": ec += 1 l.append(ec) elif s[i] == "N": nc += 1 l.append(nc) else: sc += 1 l.append(sc) if (wc>0 and ec==0) or (wc==0 and ec>0) or (nc==0 and sc>0) or (nc>0 and sc==0): print("No") return else: print("Yes") return walk(s)
[ 7, 12, 13, 0, 13, 4, 13, 14, 2, 2, 2, 2, 2, 40, 4, 18, 13, 13, 17, 17, 40, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 2, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 40, 4, 18, 13, 13, 17, 17, 40, 4, 18, 13, 13, 17, 17, 2, 2, 2, 40, 4, 18, 13, 13, 17, 17, 40, 4, 18, 13, 13, 17, 17, 40, 4, 18, 13, 13, 17, 17, 40, 4, 18, 13, 13, 17, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 4, 16 ], [ 4, 23 ], [ 4, 30 ], [ 4, 37 ], [ 4, 47 ], [ 4, 54 ], [ 4, 61 ], [ 4, 68 ], [ 4, 78 ], [ 4, 85 ], [ 4, 92 ], [ 4, 99 ], [ 117, 114 ] ]
[ "def main():\n S = input()\n if (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0)\\\n or (S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)\\\n or (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1):\n print(\"Yes\")\n else:\n print(\"No\")\n\nif __name__ == \"__main__\":\n main()", "def main():\n S = input()\n if (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0)\\\n or (S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)\\\n or (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1):\n print(\"Yes\")\n else:\n print(\"No\")", "main", "S = input()", "S", "input()", "input", "if (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0)\\\n or (S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)\\\n or (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1):\n print(\"Yes\")\n else:\n print(\"No\")", "(S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0)\\\n or (S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)\\\n or (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)", "(S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0)\\\n or (S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)", "S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0", "S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0", "S.count(\"N\") >= 1 and S.count(\"S\") >= 1", "S.count(\"N\") >= 1", "S.count(\"N\")", "S.count", "S", "count", "\"N\"", "1", "S.count(\"S\") >= 1", "S.count(\"S\")", "S.count", "S", "count", "\"S\"", "1", "S.count(\"E\") == 0", "S.count(\"E\")", "S.count", "S", "count", "\"E\"", "0", "S.count(\"W\") == 0", "S.count(\"W\")", "S.count", "S", "count", "\"W\"", "0", "S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1", "S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1", "S.count(\"N\") == 0 and S.count(\"S\") == 0", "S.count(\"N\") == 0", "S.count(\"N\")", "S.count", "S", "count", "\"N\"", "0", "S.count(\"S\") == 0", "S.count(\"S\")", "S.count", "S", "count", "\"S\"", "0", "S.count(\"E\") >= 1", "S.count(\"E\")", "S.count", "S", "count", "\"E\"", "1", "S.count(\"W\") >= 1", "S.count(\"W\")", "S.count", "S", "count", "\"W\"", "1", "S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1", "S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1", "S.count(\"N\") >= 1 and S.count(\"S\") >= 1", "S.count(\"N\") >= 1", "S.count(\"N\")", "S.count", "S", "count", "\"N\"", "1", "S.count(\"S\") >= 1", "S.count(\"S\")", "S.count", "S", "count", "\"S\"", "1", "S.count(\"E\") >= 1", "S.count(\"E\")", "S.count", "S", "count", "\"E\"", "1", "S.count(\"W\") >= 1", "S.count(\"W\")", "S.count", "S", "count", "\"W\"", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "if __name__ == \"__main__\":\n main()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "def main():\n S = input()\n if (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0)\\\n or (S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)\\\n or (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1):\n print(\"Yes\")\n else:\n print(\"No\")", "def main():\n S = input()\n if (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") == 0 and S.count(\"W\") == 0)\\\n or (S.count(\"N\") == 0 and S.count(\"S\") == 0 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1)\\\n or (S.count(\"N\") >= 1 and S.count(\"S\") >= 1 and S.count(\"E\") >= 1 and S.count(\"W\") >= 1):\n print(\"Yes\")\n else:\n print(\"No\")", "main" ]
def main(): S = input() if (S.count("N") >= 1 and S.count("S") >= 1 and S.count("E") == 0 and S.count("W") == 0)\ or (S.count("N") == 0 and S.count("S") == 0 and S.count("E") >= 1 and S.count("W") >= 1)\ or (S.count("N") >= 1 and S.count("S") >= 1 and S.count("E") >= 1 and S.count("W") >= 1): print("Yes") else: print("No") if __name__ == "__main__": main()
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 4, 13, 17, 14, 2, 2, 2, 2, 13, 13, 17, 2, 13, 17, 2, 13, 17, 4, 13, 17, 14, 2, 2, 2, 2, 13, 13, 17, 2, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 92, 2 ], [ 98, 6 ], [ 93, 9 ], [ 89, 13 ], [ 93, 16 ], [ 95, 20 ], [ 93, 23 ], [ 86, 27 ], [ 93, 30 ], [ 99, 37 ], [ 90, 38 ], [ 96, 42 ], [ 87, 43 ], [ 99, 53 ], [ 90, 54 ], [ 96, 57 ], [ 87, 60 ], [ 96, 70 ], [ 87, 71 ], [ 99, 74 ], [ 90, 77 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ] ]
[ "S = input()\n\nn = S.count('N')\ns = S.count('S')\nw = S.count('W')\ne = S.count('E')\n\nif n * s > 0 and w * e > 0:\n print('Yes')\nelif n * s > 0 and w == 0 and e == 0:\n print('Yes')\nelif w * e > 0 and n == 0 and s == 0:\n print('Yes')\nelse:\n print('No')", "S = input()", "S", "input()", "input", "n = S.count('N')", "n", "S.count('N')", "S.count", "S", "count", "'N'", "s = S.count('S')", "s", "S.count('S')", "S.count", "S", "count", "'S'", "w = S.count('W')", "w", "S.count('W')", "S.count", "S", "count", "'W'", "e = S.count('E')", "e", "S.count('E')", "S.count", "S", "count", "'E'", "if n * s > 0 and w * e > 0:\n print('Yes')\nelif n * s > 0 and w == 0 and e == 0:\n print('Yes')\nelif w * e > 0 and n == 0 and s == 0:\n print('Yes')\nelse:\n print('No')", "n * s > 0 and w * e > 0", "n * s > 0", "n * s", "n", "s", "0", "w * e > 0", "w * e", "w", "e", "0", "print('Yes')", "print", "'Yes'", "elif n * s > 0 and w == 0 and e == 0:\n print('Yes')", "n * s > 0 and w == 0 and e == 0", "n * s > 0 and w == 0", "n * s > 0", "n * s", "n", "s", "0", "w == 0", "w", "0", "e == 0", "e", "0", "print('Yes')", "print", "'Yes'", "elif w * e > 0 and n == 0 and s == 0:\n print('Yes')", "w * e > 0 and n == 0 and s == 0", "w * e > 0 and n == 0", "w * e > 0", "w * e", "w", "e", "0", "n == 0", "n", "0", "s == 0", "s", "0", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "e = S.count('E')", "S.count('E')", "e", "s = S.count('S')", "S.count('S')", "s", "S = input()", "input()", "S", "w = S.count('W')", "S.count('W')", "w", "n = S.count('N')", "S.count('N')", "n" ]
S = input() n = S.count('N') s = S.count('S') w = S.count('W') e = S.count('E') if n * s > 0 and w * e > 0: print('Yes') elif n * s > 0 and w == 0 and e == 0: print('Yes') elif w * e > 0 and n == 0 and s == 0: print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 14, 2, 2, 2, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 2, 2, 4, 18, 13, 13, 17, 17, 2, 4, 18, 13, 13, 17, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 76, 2 ], [ 77, 13 ], [ 77, 20 ], [ 77, 28 ], [ 77, 35 ], [ 77, 43 ], [ 77, 50 ], [ 77, 58 ], [ 77, 65 ], [ 76, 77 ] ]
[ "S = input()\nif S.count('N') > 0 and S.count('S') == 0 or S.count('N') == 0 and S.count('S') > 0 or S.count('W') > 0 and S.count('E') == 0 or S.count('W') == 0 and S.count('E') > 0:\n print('No')\nelse:\n print('Yes')", "S = input()", "S", "input()", "input", "if S.count('N') > 0 and S.count('S') == 0 or S.count('N') == 0 and S.count('S') > 0 or S.count('W') > 0 and S.count('E') == 0 or S.count('W') == 0 and S.count('E') > 0:\n print('No')\nelse:\n print('Yes')", "S.count('N') > 0 and S.count('S') == 0 or S.count('N') == 0 and S.count('S') > 0 or S.count('W') > 0 and S.count('E') == 0 or S.count('W') == 0 and S.count('E') > 0", "S.count('N') > 0 and S.count('S') == 0 or S.count('N') == 0 and S.count('S') > 0 or S.count('W') > 0 and S.count('E') == 0", "S.count('N') > 0 and S.count('S') == 0 or S.count('N') == 0 and S.count('S') > 0", "S.count('N') > 0 and S.count('S') == 0", "S.count('N') > 0", "S.count('N')", "S.count", "S", "count", "'N'", "0", "S.count('S') == 0", "S.count('S')", "S.count", "S", "count", "'S'", "0", "S.count('N') == 0 and S.count('S') > 0", "S.count('N') == 0", "S.count('N')", "S.count", "S", "count", "'N'", "0", "S.count('S') > 0", "S.count('S')", "S.count", "S", "count", "'S'", "0", "S.count('W') > 0 and S.count('E') == 0", "S.count('W') > 0", "S.count('W')", "S.count", "S", "count", "'W'", "0", "S.count('E') == 0", "S.count('E')", "S.count", "S", "count", "'E'", "0", "S.count('W') == 0 and S.count('E') > 0", "S.count('W') == 0", "S.count('W')", "S.count", "S", "count", "'W'", "0", "S.count('E') > 0", "S.count('E')", "S.count", "S", "count", "'E'", "0", "print('No')", "print", "'No'", "print('Yes')", "print", "'Yes'", "S = input()", "input()", "S" ]
S = input() if S.count('N') > 0 and S.count('S') == 0 or S.count('N') == 0 and S.count('S') > 0 or S.count('W') > 0 and S.count('E') == 0 or S.count('W') == 0 and S.count('E') > 0: print('No') else: print('Yes')
[ 7, 0, 13, 4, 13, 0, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 0, 13, 17, 14, 2, 40, 17, 13, 40, 17, 13, 0, 13, 17, 0, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 0, 13, 17, 14, 2, 40, 17, 13, 40, 17, 13, 0, 13, 17, 14, 2, 13, 13, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 78, 2 ], [ 72, 6 ], [ 79, 12 ], [ 79, 15 ], [ 66, 17 ], [ 79, 23 ], [ 79, 26 ], [ 81, 28 ], [ 75, 31 ], [ 79, 37 ], [ 79, 40 ], [ 84, 42 ], [ 79, 48 ], [ 79, 51 ], [ 69, 53 ], [ 82, 57 ], [ 67, 57 ], [ 73, 57 ], [ 70, 58 ], [ 85, 58 ], [ 76, 58 ], [ 66, 67 ], [ 69, 70 ], [ 72, 73 ], [ 75, 76 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ] ]
[ "s = input()\n\nx = False\nif 'N' in s and 'S' in s:\n x = True\nif 'N' not in s and 'S' not in s:\n x = True\ny = False\nif 'W' in s and 'E' in s:\n y = True\nif 'W' not in s and 'E' not in s:\n y = True\n\nif x and y:\n print('Yes')\nelse:\n print('No') ", "s = input()", "s", "input()", "input", "x = False", "x", "False", "if 'N' in s and 'S' in s:\n x = True", "'N' in s and 'S' in s", "'N' in s", "'N'", "s", "'S' in s", "'S'", "s", "x = True", "x", "True", "if 'N' not in s and 'S' not in s:\n x = True", "'N' not in s and 'S' not in s", "'N' not in s", "'N'", "s", "'S' not in s", "'S'", "s", "x = True", "x", "True", "y = False", "y", "False", "if 'W' in s and 'E' in s:\n y = True", "'W' in s and 'E' in s", "'W' in s", "'W'", "s", "'E' in s", "'E'", "s", "y = True", "y", "True", "if 'W' not in s and 'E' not in s:\n y = True", "'W' not in s and 'E' not in s", "'W' not in s", "'W'", "s", "'E' not in s", "'E'", "s", "y = True", "y", "True", "if x and y:\n print('Yes')\nelse:\n print('No') ", "x and y", "x", "y", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "x = True", "True", "x", "y = True", "True", "y", "x = False", "False", "x", "y = False", "False", "y", "s = input()", "input()", "s", "x = True", "True", "x", "y = True", "True", "y" ]
s = input() x = False if 'N' in s and 'S' in s: x = True if 'N' not in s and 'S' not in s: x = True y = False if 'W' in s and 'E' in s: y = True if 'W' not in s and 'E' not in s: y = True if x and y: print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 12, 13, 29, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 23, 13, 23, 13, 0, 13, 2, 4, 13, 13, 13, 4, 13, 13, 13, 14, 13, 4, 13, 17, 4, 13, 17, 10, 12, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 90, 2 ], [ 84, 6 ], [ 91, 9 ], [ 81, 13 ], [ 91, 16 ], [ 87, 20 ], [ 91, 23 ], [ 78, 27 ], [ 91, 30 ], [ 52, 39 ], [ 54, 42 ], [ 52, 46 ], [ 54, 49 ], [ 52, 52 ], [ 54, 54 ], [ 93, 56 ], [ 76, 59 ], [ 85, 60 ], [ 88, 61 ], [ 76, 63 ], [ 79, 64 ], [ 82, 65 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ] ]
[ "S = input()\n\nn = S.count('N')\nw = S.count('W')\ns = S.count('S')\ne = S.count('E')\n\ndef f(n,s):\n return (n==0 and s==0) or (n>0 and s>0)\n\nb = f(n,s) and f(e,w)\n\nif b:\n print(\"Yes\")\nelse:\n print(\"No\")\n\n\n\n\n", "S = input()", "S", "input()", "input", "n = S.count('N')", "n", "S.count('N')", "S.count", "S", "count", "'N'", "w = S.count('W')", "w", "S.count('W')", "S.count", "S", "count", "'W'", "s = S.count('S')", "s", "S.count('S')", "S.count", "S", "count", "'S'", "e = S.count('E')", "e", "S.count('E')", "S.count", "S", "count", "'E'", "def f(n,s):\n return (n==0 and s==0) or (n>0 and s>0)", "f", "return (n==0 and s==0) or (n>0 and s>0)", "(n==0 and s==0) or (n>0 and s>0)", "n==0 and s==0", "n==0", "n", "0", "s==0", "s", "0", "n>0 and s>0", "n>0", "n", "0", "s>0", "s", "0", "n", "n", "s", "s", "b = f(n,s) and f(e,w)", "b", "f(n,s) and f(e,w)", "f(n,s)", "f", "n", "s", "f(e,w)", "f", "e", "w", "if b:\n print(\"Yes\")\nelse:\n print(\"No\")", "b", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "def f(n,s):\n return (n==0 and s==0) or (n>0 and s>0)", "def f(n,s):\n return (n==0 and s==0) or (n>0 and s>0)", "f", "e = S.count('E')", "S.count('E')", "e", "w = S.count('W')", "S.count('W')", "w", "n = S.count('N')", "S.count('N')", "n", "s = S.count('S')", "S.count('S')", "s", "S = input()", "input()", "S", "b = f(n,s) and f(e,w)", "f(n,s) and f(e,w)", "b" ]
S = input() n = S.count('N') w = S.count('W') s = S.count('S') e = S.count('E') def f(n,s): return (n==0 and s==0) or (n>0 and s>0) b = f(n,s) and f(e,w) if b: print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 4, 13, 14, 2, 2, 2, 2, 17, 13, 40, 17, 13, 2, 17, 13, 40, 17, 13, 4, 13, 17, 14, 2, 2, 2, 40, 17, 13, 2, 17, 13, 40, 17, 13, 2, 17, 13, 4, 13, 17, 14, 2, 2, 2, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13 ]
[ [ 68, 2 ], [ 69, 13 ], [ 69, 16 ], [ 69, 19 ], [ 69, 22 ], [ 69, 32 ], [ 69, 35 ], [ 69, 38 ], [ 69, 41 ], [ 69, 51 ], [ 69, 54 ], [ 69, 57 ], [ 69, 60 ], [ 68, 69 ] ]
[ "S = list(input())\n\nif \"N\" in S and \"W\" not in S and \"S\" in S and \"E\" not in S:\n print(\"Yes\")\nelif \"N\" not in S and \"W\" in S and \"S\" not in S and \"E\" in S:\n print(\"Yes\")\nelif \"N\" in S and \"W\" in S and \"S\" in S and \"E\" in S:\n print(\"Yes\")\nelse:\n print(\"No\")", "S = list(input())", "S", "list(input())", "list", "input()", "input", "if \"N\" in S and \"W\" not in S and \"S\" in S and \"E\" not in S:\n print(\"Yes\")\nelif \"N\" not in S and \"W\" in S and \"S\" not in S and \"E\" in S:\n print(\"Yes\")\nelif \"N\" in S and \"W\" in S and \"S\" in S and \"E\" in S:\n print(\"Yes\")\nelse:\n print(\"No\")", "\"N\" in S and \"W\" not in S and \"S\" in S and \"E\" not in S", "\"N\" in S and \"W\" not in S and \"S\" in S", "\"N\" in S and \"W\" not in S", "\"N\" in S", "\"N\"", "S", "\"W\" not in S", "\"W\"", "S", "\"S\" in S", "\"S\"", "S", "\"E\" not in S", "\"E\"", "S", "print(\"Yes\")", "print", "\"Yes\"", "elif \"N\" not in S and \"W\" in S and \"S\" not in S and \"E\" in S:\n print(\"Yes\")", "\"N\" not in S and \"W\" in S and \"S\" not in S and \"E\" in S", "\"N\" not in S and \"W\" in S and \"S\" not in S", "\"N\" not in S and \"W\" in S", "\"N\" not in S", "\"N\"", "S", "\"W\" in S", "\"W\"", "S", "\"S\" not in S", "\"S\"", "S", "\"E\" in S", "\"E\"", "S", "print(\"Yes\")", "print", "\"Yes\"", "elif \"N\" in S and \"W\" in S and \"S\" in S and \"E\" in S:\n print(\"Yes\")", "\"N\" in S and \"W\" in S and \"S\" in S and \"E\" in S", "\"N\" in S and \"W\" in S and \"S\" in S", "\"N\" in S and \"W\" in S", "\"N\" in S", "\"N\"", "S", "\"W\" in S", "\"W\"", "S", "\"S\" in S", "\"S\"", "S", "\"E\" in S", "\"E\"", "S", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "S = list(input())", "list(input())", "S" ]
S = list(input()) if "N" in S and "W" not in S and "S" in S and "E" not in S: print("Yes") elif "N" not in S and "W" in S and "S" not in S and "E" in S: print("Yes") elif "N" in S and "W" in S and "S" in S and "E" in S: print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 14, 2, 2, 4, 13, 13, 17, 17, 14, 2, 2, 2, 2, 13, 4, 13, 2, 13, 4, 13, 39, 17, 17, 2, 13, 4, 13, 39, 17, 17, 2, 13, 4, 13, 39, 17, 17, 17, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 62, 2 ], [ 59, 6 ], [ 63, 9 ], [ 60, 15 ], [ 60, 23 ], [ 60, 27 ], [ 60, 34 ], [ 60, 41 ], [ 59, 60 ], [ 62, 63 ] ]
[ "S = input()\n\nS_set = set(S)\nif len(S_set) % 2 == 0:\n if S_set == set() or S_set == set(['N', 'S']) or S_set == set(['E', 'W']) or S_set == set(['N', 'S', 'E', 'W']):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "S = input()", "S", "input()", "input", "S_set = set(S)", "S_set", "set(S)", "set", "S", "if len(S_set) % 2 == 0:\n if S_set == set() or S_set == set(['N', 'S']) or S_set == set(['E', 'W']) or S_set == set(['N', 'S', 'E', 'W']):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "len(S_set) % 2 == 0", "len(S_set) % 2", "len(S_set)", "len", "S_set", "2", "0", "if S_set == set() or S_set == set(['N', 'S']) or S_set == set(['E', 'W']) or S_set == set(['N', 'S', 'E', 'W']):\n print('Yes')\n else:\n print('No')", "S_set == set() or S_set == set(['N', 'S']) or S_set == set(['E', 'W']) or S_set == set(['N', 'S', 'E', 'W'])", "S_set == set() or S_set == set(['N', 'S']) or S_set == set(['E', 'W'])", "S_set == set() or S_set == set(['N', 'S'])", "S_set == set()", "S_set", "set()", "set", "S_set == set(['N', 'S'])", "S_set", "set(['N', 'S'])", "set", "['N', 'S']", "'N'", "'S'", "S_set == set(['E', 'W'])", "S_set", "set(['E', 'W'])", "set", "['E', 'W']", "'E'", "'W'", "S_set == set(['N', 'S', 'E', 'W'])", "S_set", "set(['N', 'S', 'E', 'W'])", "set", "['N', 'S', 'E', 'W']", "'N'", "'S'", "'E'", "'W'", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "S_set = set(S)", "set(S)", "S_set", "S = input()", "input()", "S" ]
S = input() S_set = set(S) if len(S_set) % 2 == 0: if S_set == set() or S_set == set(['N', 'S']) or S_set == set(['E', 'W']) or S_set == set(['N', 'S', 'E', 'W']): print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 14, 2, 2, 13, 17, 40, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 2, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13 ]
[ [ 64, 2 ], [ 52, 8 ], [ 73, 11 ], [ 15, 14 ], [ 65, 17 ], [ 55, 19 ], [ 74, 27 ], [ 62, 27 ], [ 56, 30 ], [ 68, 30 ], [ 58, 33 ], [ 67, 36 ], [ 70, 39 ], [ 68, 41 ], [ 56, 41 ], [ 61, 44 ], [ 68, 46 ], [ 56, 46 ], [ 71, 50 ], [ 59, 50 ], [ 53, 50 ], [ 52, 53 ], [ 55, 56 ], [ 58, 59 ], [ 61, 62 ], [ 64, 65 ], [ 67, 68 ], [ 70, 71 ], [ 73, 74 ] ]
[ "N = int(input())\nans = 0\nprev = 0\nfor i in range(N):\n a = int(input())\n if prev == 1 and a >= 1:\n ans += 1\n a -= 1\n ans += a // 2\n prev = a % 2\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "prev = 0", "prev", "0", "for i in range(N):\n a = int(input())\n if prev == 1 and a >= 1:\n ans += 1\n a -= 1\n ans += a // 2\n prev = a % 2", "i", "range(N)", "range", "N", "a = int(input())", "a", "int(input())", "int", "input()", "input", "if prev == 1 and a >= 1:\n ans += 1\n a -= 1\n ", "prev == 1 and a >= 1", "prev == 1", "prev", "1", "a >= 1", "a", "1", "ans += 1", "ans", "1", "a -= 1", "a", "1", "ans += a // 2", "ans", "a // 2", "a", "2", "prev = a % 2", "prev", "a % 2", "a", "2", "print(ans)", "print", "ans", "ans = 0", "0", "ans", "a = int(input())", "int(input())", "a", "ans += 1", "1", "ans", "prev = a % 2", "a % 2", "prev", "N = int(input())", "int(input())", "N", "a -= 1", "1", "a", "ans += a // 2", "a // 2", "ans", "prev = 0", "0", "prev" ]
N = int(input()) ans = 0 prev = 0 for i in range(N): a = int(input()) if prev == 1 and a >= 1: ans += 1 a -= 1 ans += a // 2 prev = a % 2 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 13, 40, 18, 13, 13, 17, 0, 13, 17, 0, 18, 13, 13, 17, 0, 13, 2, 18, 13, 13, 17, 0, 13, 2, 18, 13, 13, 17, 4, 13, 13, 10, 17, 13, 10, 2, 13, 10, 2, 13, 10, 4, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 75, 2 ], [ 10, 9 ], [ 76, 12 ], [ 78, 19 ], [ 66, 22 ], [ 84, 25 ], [ 29, 28 ], [ 76, 31 ], [ 85, 34 ], [ 73, 34 ], [ 44, 36 ], [ 79, 37 ], [ 28, 38 ], [ 81, 41 ], [ 47, 44 ], [ 79, 45 ], [ 28, 46 ], [ 72, 49 ], [ 44, 51 ], [ 79, 52 ], [ 28, 53 ], [ 69, 56 ], [ 44, 58 ], [ 79, 59 ], [ 28, 60 ], [ 70, 64 ], [ 82, 64 ], [ 67, 64 ], [ 66, 67 ], [ 69, 70 ], [ 72, 73 ], [ 75, 76 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ] ]
[ "n = int(input())\na = [int(input()) for i in range(n)]\nans = 0\nflag = 0\nfor i in range(n):\n if flag and a[i] >= 1:\n ans += 1\n a[i] -= 1\n flag = a[i] % 2\n ans += a[i] // 2\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "int(input()) for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "int(input())", "int", "input()", "input", "a = [int(input()) for i in range(n)]", "a", "[int(input()) for i in range(n)]", "ans = 0", "ans", "0", "flag = 0", "flag", "0", "for i in range(n):\n if flag and a[i] >= 1:\n ans += 1\n a[i] -= 1\n flag = a[i] % 2\n ans += a[i] // 2", "i", "range(n)", "range", "n", "if flag and a[i] >= 1:\n ans += 1\n a[i] -= 1\n ", "flag and a[i] >= 1", "flag", "a[i] >= 1", "a[i]", "a", "i", "1", "ans += 1", "ans", "1", "a[i] -= 1", "a[i]", "a", "i", "1", "flag = a[i] % 2", "flag", "a[i] % 2", "a[i]", "a", "i", "2", "ans += a[i] // 2", "ans", "a[i] // 2", "a[i]", "a", "i", "2", "print(ans)", "print", "ans", "ans = 0", "0", "ans", "ans += a[i] // 2", "a[i] // 2", "ans", "flag = a[i] % 2", "a[i] % 2", "flag", "n = int(input())", "int(input())", "n", "a = [int(input()) for i in range(n)]", "[int(input()) for i in range(n)]", "a", "ans += 1", "1", "ans", "flag = 0", "0", "flag" ]
n = int(input()) a = [int(input()) for i in range(n)] ans = 0 flag = 0 for i in range(n): if flag and a[i] >= 1: ans += 1 a[i] -= 1 flag = a[i] % 2 ans += a[i] // 2 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 17, 9, 0, 13, 2, 2, 13, 13, 17, 0, 13, 2, 2, 13, 13, 17, 4, 13, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 2, 13, 10, 4, 13, 10, 13, 13, 10, 17, 13 ]
[ [ 68, 2 ], [ 10, 9 ], [ 69, 12 ], [ 71, 19 ], [ 56, 22 ], [ 74, 25 ], [ 29, 28 ], [ 72, 28 ], [ 28, 32 ], [ 59, 35 ], [ 62, 39 ], [ 28, 42 ], [ 60, 43 ], [ 75, 43 ], [ 66, 43 ], [ 65, 46 ], [ 28, 49 ], [ 60, 50 ], [ 75, 50 ], [ 66, 50 ], [ 63, 54 ], [ 57, 54 ], [ 56, 57 ], [ 59, 60 ], [ 62, 63 ], [ 65, 66 ], [ 68, 69 ], [ 71, 72 ], [ 74, 75 ] ]
[ "N = int(input())\nA = [int(input()) for _ in range(N)]\n\ncnt = 0\nremain = 0\nfor a in A:\n if a == 0:\n remain = 0\n continue\n cnt += (a+remain)//2 \n remain = (a+remain)%2\nprint(cnt)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "int(input()) for _ in range(N)", "for _ in range(N)", "_", "range(N)", "range", "N", "for _ in range(N)", "int(input())", "int", "input()", "input", "A = [int(input()) for _ in range(N)]", "A", "[int(input()) for _ in range(N)]", "cnt = 0", "cnt", "0", "remain = 0", "remain", "0", "for a in A:\n if a == 0:\n remain = 0\n continue\n cnt += (a+remain)//2 \n remain = (a+remain)%2", "a", "A", "if a == 0:\n remain = 0\n continue\n ", "a == 0", "a", "0", "remain = 0", "remain", "0", "continue", "cnt += (a+remain)//2", "cnt", "(a+remain)//2", "a+remain", "a", "remain", "2", "remain = (a+remain)%2", "remain", "(a+remain)%2", "a+remain", "a", "remain", "2", "print(cnt)", "print", "cnt", "cnt = 0", "0", "cnt", "remain = 0", "0", "remain", "cnt += (a+remain)//2", "(a+remain)//2", "cnt", "remain = (a+remain)%2", "(a+remain)%2", "remain", "N = int(input())", "int(input())", "N", "A = [int(input()) for _ in range(N)]", "[int(input()) for _ in range(N)]", "A", "remain = 0", "0", "remain" ]
N = int(input()) A = [int(input()) for _ in range(N)] cnt = 0 remain = 0 for a in A: if a == 0: remain = 0 continue cnt += (a+remain)//2 remain = (a+remain)%2 print(cnt)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 14, 2, 13, 17, 0, 13, 17, 9, 0, 13, 2, 2, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 17, 0, 13, 17, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 69, 2 ], [ 72, 8 ], [ 57, 11 ], [ 15, 14 ], [ 70, 17 ], [ 75, 19 ], [ 76, 26 ], [ 78, 29 ], [ 63, 33 ], [ 76, 36 ], [ 79, 37 ], [ 58, 37 ], [ 67, 37 ], [ 61, 37 ], [ 76, 43 ], [ 79, 44 ], [ 58, 44 ], [ 67, 44 ], [ 61, 44 ], [ 60, 48 ], [ 66, 51 ], [ 64, 55 ], [ 73, 55 ], [ 57, 58 ], [ 60, 61 ], [ 63, 64 ], [ 66, 67 ], [ 69, 70 ], [ 72, 73 ], [ 75, 76 ], [ 78, 79 ] ]
[ "n = int(input())\nans = 0\nbef = 0\nfor _ in range(n):\n a = int(input())\n if a == 0:\n bef = 0\n continue\n ans += (a + bef) // 2\n if (a + bef) % 2 == 1:\n bef = 1\n else:\n bef = 0\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "bef = 0", "bef", "0", "for _ in range(n):\n a = int(input())\n if a == 0:\n bef = 0\n continue\n ans += (a + bef) // 2\n if (a + bef) % 2 == 1:\n bef = 1\n else:\n bef = 0", "_", "range(n)", "range", "n", "a = int(input())", "a", "int(input())", "int", "input()", "input", "if a == 0:\n bef = 0\n continue\n ", "a == 0", "a", "0", "bef = 0", "bef", "0", "continue", "ans += (a + bef) // 2", "ans", "(a + bef) // 2", "a + bef", "a", "bef", "2", "if (a + bef) % 2 == 1:\n bef = 1\n else:\n bef = 0", "(a + bef) % 2 == 1", "(a + bef) % 2", "a + bef", "a", "bef", "2", "1", "bef = 1", "bef", "1", "bef = 0", "bef", "0", "print(ans)", "print", "ans", "bef = 0", "0", "bef", "bef = 1", "1", "bef", "ans += (a + bef) // 2", "(a + bef) // 2", "ans", "bef = 0", "0", "bef", "n = int(input())", "int(input())", "n", "ans = 0", "0", "ans", "a = int(input())", "int(input())", "a", "bef = 0", "0", "bef" ]
n = int(input()) ans = 0 bef = 0 for _ in range(n): a = int(input()) if a == 0: bef = 0 continue ans += (a + bef) // 2 if (a + bef) % 2 == 1: bef = 1 else: bef = 0 print(ans)
[ 7, 15, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 13, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 0, 18, 13, 2, 13, 17, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 4, 18, 13, 13, 2, 13, 17, 17, 0, 13, 4, 18, 13, 13, 13, 17, 0, 13, 4, 13, 13, 13, 0, 13, 13, 0, 18, 13, 2, 13, 17, 13, 0, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 13, 17, 0, 13, 2, 13, 17, 0, 13, 13, 0, 18, 13, 13, 2, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 4, 13, 10, 4, 13, 10, 13, 13, 10, 13, 13, 10, 4, 13 ]
[ [ 117, 3 ], [ 129, 9 ], [ 15, 14 ], [ 118, 17 ], [ 114, 19 ], [ 30, 25 ], [ 130, 26 ], [ 14, 28 ], [ 115, 30 ], [ 108, 32 ], [ 36, 35 ], [ 118, 40 ], [ 120, 43 ], [ 130, 46 ], [ 35, 49 ], [ 138, 53 ], [ 130, 56 ], [ 35, 58 ], [ 111, 61 ], [ 121, 64 ], [ 139, 65 ], [ 127, 65 ], [ 132, 67 ], [ 112, 68 ], [ 124, 68 ], [ 75, 70 ], [ 130, 71 ], [ 35, 73 ], [ 112, 75 ], [ 124, 75 ], [ 80, 77 ], [ 130, 78 ], [ 35, 79 ], [ 112, 80 ], [ 124, 80 ], [ 126, 82 ], [ 130, 85 ], [ 35, 87 ], [ 123, 90 ], [ 127, 92 ], [ 139, 92 ], [ 135, 95 ], [ 124, 96 ], [ 112, 96 ], [ 101, 98 ], [ 130, 99 ], [ 35, 100 ], [ 124, 102 ], [ 112, 102 ], [ 136, 106 ], [ 133, 106 ], [ 109, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ], [ 117, 118 ], [ 120, 121 ], [ 123, 124 ], [ 126, 127 ], [ 129, 130 ], [ 112, 132 ], [ 124, 132 ], [ 132, 133 ], [ 124, 135 ], [ 112, 135 ], [ 135, 136 ], [ 138, 139 ] ]
[ "# https://atcoder.jp/contests/agc003/tasks/agc003_b\n# 各数字について、その数字の1つ前とその数字だけでできるだけ作る。\n# その数字だけでペアをできるだけ作る。\n# 1については、0のカードが0枚なので、実質無視できる。\nfrom collections import defaultdict\nn = int(input())\nd = defaultdict(int)\nfor i in range(n):\n num = int(input())\n d[i + 1] = num\n\nans = 0\nfor i in range(1, n + 1):\n pre = d.get(i - 1, 0)\n cur = d.get(i, 0)\n t = min(pre, cur)\n ans += t\n d[i - 1] -= t\n d[i] -= t\n cur = d.get(i, 0)\n t = cur // 2\n ans += t\n d[i] -= t * 2\nprint(ans)", "from collections import defaultdict", "n = int(input())", "n", "int(input())", "int", "input()", "input", "d = defaultdict(int)", "d", "defaultdict(int)", "defaultdict", "int", "for i in range(n):\n num = int(input())\n d[i + 1] = num", "i", "range(n)", "range", "n", "num = int(input())", "num", "int(input())", "int", "input()", "input", "d[i + 1] = num", "d[i + 1]", "d", "i + 1", "i", "1", "num", "ans = 0", "ans", "0", "for i in range(1, n + 1):\n pre = d.get(i - 1, 0)\n cur = d.get(i, 0)\n t = min(pre, cur)\n ans += t\n d[i - 1] -= t\n d[i] -= t\n cur = d.get(i, 0)\n t = cur // 2\n ans += t\n d[i] -= t * 2", "i", "range(1, n + 1)", "range", "1", "n + 1", "n", "1", "pre = d.get(i - 1, 0)", "pre", "d.get(i - 1, 0)", "d.get", "d", "get", "i - 1", "i", "1", "0", "cur = d.get(i, 0)", "cur", "d.get(i, 0)", "d.get", "d", "get", "i", "0", "t = min(pre, cur)", "t", "min(pre, cur)", "min", "pre", "cur", "ans += t", "ans", "t", "d[i - 1] -= t", "d[i - 1]", "d", "i - 1", "i", "1", "t", "d[i] -= t", "d[i]", "d", "i", "t", "cur = d.get(i, 0)", "cur", "d.get(i, 0)", "d.get", "d", "get", "i", "0", "t = cur // 2", "t", "cur // 2", "cur", "2", "ans += t", "ans", "t", "d[i] -= t * 2", "d[i]", "d", "i", "t * 2", "t", "2", "print(ans)", "print", "ans", "ans = 0", "0", "ans", "t = min(pre, cur)", "min(pre, cur)", "t", "num = int(input())", "int(input())", "num", "n = int(input())", "int(input())", "n", "pre = d.get(i - 1, 0)", "d.get(i - 1, 0)", "pre", "t = cur // 2", "cur // 2", "t", "cur = d.get(i, 0)", "d.get(i, 0)", "cur", "d = defaultdict(int)", "defaultdict(int)", "d", "ans += t", "t", "ans", "ans += t", "t", "ans", "cur = d.get(i, 0)", "d.get(i, 0)", "cur" ]
# https://atcoder.jp/contests/agc003/tasks/agc003_b # 各数字について、その数字の1つ前とその数字だけでできるだけ作る。 # その数字だけでペアをできるだけ作る。 # 1については、0のカードが0枚なので、実質無視できる。 from collections import defaultdict n = int(input()) d = defaultdict(int) for i in range(n): num = int(input()) d[i + 1] = num ans = 0 for i in range(1, n + 1): pre = d.get(i - 1, 0) cur = d.get(i, 0) t = min(pre, cur) ans += t d[i - 1] -= t d[i] -= t cur = d.get(i, 0) t = cur // 2 ans += t d[i] -= t * 2 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 39, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 14, 13, 4, 18, 13, 13, 13, 0, 13, 39, 4, 18, 13, 13, 13, 14, 13, 0, 13, 17, 28, 13, 13, 28, 13, 13, 4, 13, 13, 0, 13, 2, 13, 17, 14, 40, 13, 2, 4, 13, 13, 17, 0, 18, 13, 2, 13, 17, 2, 13, 17, 0, 13, 2, 13, 17, 4, 13, 13, 10, 2, 13, 10, 2, 13, 10, 39, 13, 10, 39, 13, 10, 4, 13, 10, 39, 13, 10, 13, 13, 10, 17, 13 ]
[ [ 106, 2 ], [ 10, 9 ], [ 107, 12 ], [ 112, 19 ], [ 109, 22 ], [ 100, 25 ], [ 29, 28 ], [ 113, 28 ], [ 28, 32 ], [ 110, 38 ], [ 101, 40 ], [ 104, 40 ], [ 103, 42 ], [ 101, 46 ], [ 104, 46 ], [ 28, 48 ], [ 115, 52 ], [ 56, 55 ], [ 110, 55 ], [ 55, 62 ], [ 94, 64 ], [ 55, 74 ], [ 82, 77 ], [ 55, 78 ], [ 97, 86 ], [ 98, 92 ], [ 95, 92 ], [ 116, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ] ]
[ "n = int(input())\na = [int(input()) for _ in range(n)]\n\nlsts = []\ntemp = []\nfor aa in a:\n if aa == 0:\n if temp:\n lsts.append(temp)\n temp = []\n else:\n temp.append(aa)\nif temp: lsts.append(temp)\n\nans = 0\n\nfor lst in lsts:\n for i, aa in enumerate(lst):\n ans += aa // 2\n if i != len(lst)-1:\n lst[i+1] -= aa % 2\n ans += aa % 2\n\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "int(input()) for _ in range(n)", "for _ in range(n)", "_", "range(n)", "range", "n", "for _ in range(n)", "int(input())", "int", "input()", "input", "a = [int(input()) for _ in range(n)]", "a", "[int(input()) for _ in range(n)]", "lsts = []", "lsts", "[]", "temp = []", "temp", "[]", "for aa in a:\n if aa == 0:\n if temp:\n lsts.append(temp)\n temp = []\n else:\n temp.append(aa)", "aa", "a", "if aa == 0:\n if temp:\n lsts.append(temp)\n temp = []\n else:\n temp.append(aa)", "aa == 0", "aa", "0", "if temp:\n lsts.append(temp)\n temp = []\n ", "temp", "lsts.append(temp)", "lsts.append", "lsts", "append", "temp", "temp = []", "temp", "[]", "temp.append(aa)", "temp.append", "temp", "append", "aa", "if temp: lsts.append(temp)", "temp", "ans = 0", "ans", "0", "for lst in lsts:\n for i, aa in enumerate(lst):\n ans += aa // 2\n if i != len(lst)-1:\n lst[i+1] -= aa % 2\n ans += aa % 2", "lst", "lsts", "for i, aa in enumerate(lst):\n ans += aa // 2\n if i != len(lst)-1:\n lst[i+1] -= aa % 2\n ans += aa % 2", "i", "aa", "enumerate(lst)", "enumerate", "lst", "ans += aa // 2", "ans", "aa // 2", "aa", "2", "if i != len(lst)-1:\n lst[i+1] -= aa % 2\n ans += aa % 2", "i != len(lst)-1", "i", "len(lst)-1", "len(lst)", "len", "lst", "1", "lst[i+1] -= aa % 2", "lst[i+1]", "lst", "i+1", "i", "1", "aa % 2", "aa", "2", "ans += aa % 2", "ans", "aa % 2", "aa", "2", "print(ans)", "print", "ans", "ans += aa // 2", "aa // 2", "ans", "ans += aa % 2", "aa % 2", "ans", "temp = []", "[]", "temp", "temp = []", "[]", "temp", "n = int(input())", "int(input())", "n", "lsts = []", "[]", "lsts", "a = [int(input()) for _ in range(n)]", "[int(input()) for _ in range(n)]", "a", "ans = 0", "0", "ans" ]
n = int(input()) a = [int(input()) for _ in range(n)] lsts = [] temp = [] for aa in a: if aa == 0: if temp: lsts.append(temp) temp = [] else: temp.append(aa) if temp: lsts.append(temp) ans = 0 for lst in lsts: for i, aa in enumerate(lst): ans += aa // 2 if i != len(lst)-1: lst[i+1] -= aa % 2 ans += aa % 2 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 14, 2, 2, 13, 2, 13, 17, 2, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 0, 13, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 64, 2 ], [ 76, 8 ], [ 79, 11 ], [ 15, 14 ], [ 65, 17 ], [ 61, 19 ], [ 80, 27 ], [ 74, 27 ], [ 14, 29 ], [ 62, 32 ], [ 68, 32 ], [ 58, 35 ], [ 67, 38 ], [ 70, 41 ], [ 68, 43 ], [ 62, 43 ], [ 68, 48 ], [ 62, 48 ], [ 73, 52 ], [ 14, 53 ], [ 71, 56 ], [ 59, 56 ], [ 77, 56 ], [ 58, 59 ], [ 61, 62 ], [ 64, 65 ], [ 67, 68 ], [ 70, 71 ], [ 14, 73 ], [ 73, 74 ], [ 76, 77 ], [ 79, 80 ] ]
[ "N = int(input())\n\nans = 0\ntmp = -10\nfor i in range(N):\n a = int(input())\n if tmp == i-1 and a > 0:\n ans += 1\n a -= 1\n ans += a//2\n if a%2 == 1:\n tmp = i\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "tmp = -10", "tmp", "-10", "for i in range(N):\n a = int(input())\n if tmp == i-1 and a > 0:\n ans += 1\n a -= 1\n ans += a//2\n if a%2 == 1:\n tmp = i", "i", "range(N)", "range", "N", "a = int(input())", "a", "int(input())", "int", "input()", "input", "if tmp == i-1 and a > 0:\n ans += 1\n a -= 1\n ", "tmp == i-1 and a > 0", "tmp == i-1", "tmp", "i-1", "i", "1", "a > 0", "a", "0", "ans += 1", "ans", "1", "a -= 1", "a", "1", "ans += a//2", "ans", "a//2", "a", "2", "if a%2 == 1:\n tmp = i", "a%2 == 1", "a%2", "a", "2", "1", "tmp = i", "tmp", "i", "print(ans)", "print", "ans", "ans += 1", "1", "ans", "a = int(input())", "int(input())", "a", "N = int(input())", "int(input())", "N", "a -= 1", "1", "a", "ans += a//2", "a//2", "ans", "tmp = i", "i", "tmp", "ans = 0", "0", "ans", "tmp = -10", "-10", "tmp" ]
N = int(input()) ans = 0 tmp = -10 for i in range(N): a = int(input()) if tmp == i-1 and a > 0: ans += 1 a -= 1 ans += a//2 if a%2 == 1: tmp = i print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 14, 40, 13, 17, 0, 13, 13, 0, 13, 2, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 13, 13, 10, 2, 13 ]
[ [ 57, 2 ], [ 63, 8 ], [ 51, 11 ], [ 15, 14 ], [ 58, 17 ], [ 48, 19 ], [ 49, 26 ], [ 66, 29 ], [ 49, 30 ], [ 69, 32 ], [ 52, 34 ], [ 61, 34 ], [ 67, 34 ], [ 60, 37 ], [ 54, 40 ], [ 61, 42 ], [ 67, 42 ], [ 52, 42 ], [ 55, 46 ], [ 70, 46 ], [ 64, 46 ], [ 48, 49 ], [ 51, 52 ], [ 54, 55 ], [ 57, 58 ], [ 60, 61 ], [ 63, 64 ], [ 49, 66 ], [ 66, 67 ], [ 69, 70 ] ]
[ "N=int(input())\nans=0\ntmp=0\nfor i in range(N):\n s=int(input())\n if s!=0:\n tmp+=s\n else:\n ans+=tmp//2\n tmp=0\nans+=tmp//2\nprint(ans)", "N=int(input())", "N", "int(input())", "int", "input()", "input", "ans=0", "ans", "0", "tmp=0", "tmp", "0", "for i in range(N):\n s=int(input())\n if s!=0:\n tmp+=s\n else:\n ans+=tmp//2\n tmp=0", "i", "range(N)", "range", "N", "s=int(input())", "s", "int(input())", "int", "input()", "input", "if s!=0:\n tmp+=s\n else:\n ans+=tmp//2\n tmp=0", "s!=0", "s", "0", "tmp+=s", "tmp", "s", "ans+=tmp//2", "ans", "tmp//2", "tmp", "2", "tmp=0", "tmp", "0", "ans+=tmp//2", "ans", "tmp//2", "tmp", "2", "print(ans)", "print", "ans", "s=int(input())", "int(input())", "s", "tmp=0", "0", "tmp", "ans+=tmp//2", "tmp//2", "ans", "N=int(input())", "int(input())", "N", "tmp=0", "0", "tmp", "ans=0", "0", "ans", "tmp+=s", "s", "tmp", "ans+=tmp//2", "tmp//2", "ans" ]
N=int(input()) ans=0 tmp=0 for i in range(N): s=int(input()) if s!=0: tmp+=s else: ans+=tmp//2 tmp=0 ans+=tmp//2 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 39, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 18, 13, 13, 17, 0, 13, 13, 0, 18, 13, 13, 2, 17, 13, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 2, 13, 17, 17, 0, 13, 17, 0, 18, 13, 13, 17, 0, 18, 13, 2, 13, 17, 17, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 39, 13, 10, 13, 13, 10, 2, 13, 10, 13, 13, 10, 17, 13 ]
[ [ 83, 2 ], [ 10, 9 ], [ 84, 12 ], [ 92, 19 ], [ 89, 22 ], [ 101, 26 ], [ 30, 29 ], [ 84, 32 ], [ 95, 34 ], [ 68, 36 ], [ 44, 36 ], [ 90, 37 ], [ 93, 37 ], [ 29, 38 ], [ 98, 41 ], [ 96, 42 ], [ 47, 44 ], [ 90, 45 ], [ 93, 45 ], [ 29, 46 ], [ 96, 49 ], [ 44, 53 ], [ 68, 53 ], [ 90, 54 ], [ 93, 54 ], [ 29, 55 ], [ 90, 59 ], [ 93, 59 ], [ 29, 61 ], [ 86, 65 ], [ 71, 68 ], [ 90, 69 ], [ 93, 69 ], [ 29, 70 ], [ 78, 73 ], [ 90, 74 ], [ 93, 74 ], [ 29, 76 ], [ 87, 81 ], [ 99, 81 ], [ 102, 81 ], [ 83, 84 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 96, 98 ], [ 98, 99 ], [ 101, 102 ] ]
[ "n=int(input())\na=[int(input()) for i in range(n)]\na+=[0]\n\nans=0\nfor i in range(n):\n pair=a[i]//2\n ans+=pair\n a[i]-=2*pair\n if a[i]>0 and a[i+1]>0:\n ans+=1\n a[i]-=1\n a[i+1]-=1\n\nprint(ans)\n", "n=int(input())", "n", "int(input())", "int", "input()", "input", "int(input()) for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "int(input())", "int", "input()", "input", "a=[int(input()) for i in range(n)]", "a", "[int(input()) for i in range(n)]", "a+=[0]", "a", "[0]", "0", "ans=0", "ans", "0", "for i in range(n):\n pair=a[i]//2\n ans+=pair\n a[i]-=2*pair\n if a[i]>0 and a[i+1]>0:\n ans+=1\n a[i]-=1\n a[i+1]-=1", "i", "range(n)", "range", "n", "pair=a[i]//2", "pair", "a[i]//2", "a[i]", "a", "i", "2", "ans+=pair", "ans", "pair", "a[i]-=2*pair", "a[i]", "a", "i", "2*pair", "2", "pair", "if a[i]>0 and a[i+1]>0:\n ans+=1\n a[i]-=1\n a[i+1]-=1", "a[i]>0 and a[i+1]>0", "a[i]>0", "a[i]", "a", "i", "0", "a[i+1]>0", "a[i+1]", "a", "i+1", "i", "1", "0", "ans+=1", "ans", "1", "a[i]-=1", "a[i]", "a", "i", "1", "a[i+1]-=1", "a[i+1]", "a", "i+1", "i", "1", "1", "print(ans)", "print", "ans", "n=int(input())", "int(input())", "n", "ans+=1", "1", "ans", "a+=[0]", "[0]", "a", "a=[int(input()) for i in range(n)]", "[int(input()) for i in range(n)]", "a", "pair=a[i]//2", "a[i]//2", "pair", "ans+=pair", "pair", "ans", "ans=0", "0", "ans" ]
n=int(input()) a=[int(input()) for i in range(n)] a+=[0] ans=0 for i in range(n): pair=a[i]//2 ans+=pair a[i]-=2*pair if a[i]>0 and a[i+1]>0: ans+=1 a[i]-=1 a[i+1]-=1 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 2, 39, 17, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 0, 18, 13, 13, 13, 14, 2, 13, 17, 0, 13, 17, 14, 40, 13, 4, 13, 2, 4, 13, 13, 17, 4, 13, 28, 13, 4, 13, 13, 14, 40, 18, 13, 13, 17, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 0, 13, 17, 14, 2, 2, 13, 2, 13, 17, 2, 13, 17, 0, 13, 2, 13, 17, 4, 13, 13, 10, 2, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 18, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 112, 2 ], [ 106, 8 ], [ 113, 12 ], [ 103, 14 ], [ 130, 17 ], [ 109, 20 ], [ 24, 23 ], [ 113, 26 ], [ 124, 28 ], [ 37, 34 ], [ 107, 35 ], [ 23, 36 ], [ 125, 37 ], [ 125, 40 ], [ 118, 43 ], [ 119, 47 ], [ 110, 47 ], [ 107, 53 ], [ 59, 58 ], [ 113, 61 ], [ 34, 64 ], [ 107, 65 ], [ 58, 66 ], [ 121, 69 ], [ 34, 70 ], [ 107, 71 ], [ 58, 72 ], [ 100, 74 ], [ 131, 76 ], [ 128, 76 ], [ 122, 76 ], [ 127, 79 ], [ 58, 84 ], [ 113, 86 ], [ 128, 89 ], [ 122, 89 ], [ 131, 89 ], [ 115, 92 ], [ 128, 94 ], [ 122, 94 ], [ 131, 94 ], [ 116, 98 ], [ 101, 98 ], [ 104, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ], [ 118, 119 ], [ 34, 121 ], [ 121, 122 ], [ 124, 125 ], [ 127, 128 ], [ 130, 131 ] ]
[ "n = int(input())\na = [0]*n\nres = 0\ntmp = 0\nzero = False\nfor i in range(n):\n s = int(input())\n a[i] = s\n if s==0:\n zero = True\nif not zero:\n print(sum(a)//2)\n exit()\n\nfor i in range(n):\n if a[i]!=0:\n tmp+=a[i]\n else:\n res+=tmp//2\n tmp = 0\n if i==n-1 and tmp>1:\n res+=tmp//2\nprint(res)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "a = [0]*n", "a", "[0]*n", "[0]", "0", "n", "res = 0", "res", "0", "tmp = 0", "tmp", "0", "zero = False", "zero", "False", "for i in range(n):\n s = int(input())\n a[i] = s\n if s==0:\n zero = True", "i", "range(n)", "range", "n", "s = int(input())", "s", "int(input())", "int", "input()", "input", "a[i] = s", "a[i]", "a", "i", "s", "if s==0:\n zero = True", "s==0", "s", "0", "zero = True", "zero", "True", "if not zero:\n print(sum(a)//2)\n exit()", "not zero", "zero", "print(sum(a)//2)", "print", "sum(a)//2", "sum(a)", "sum", "a", "2", "exit()", "exit", "for i in range(n):\n if a[i]!=0:\n tmp+=a[i]\n else:\n res+=tmp//2\n tmp = 0\n if i==n-1 and tmp>1:\n res+=tmp//2", "i", "range(n)", "range", "n", "if a[i]!=0:\n tmp+=a[i]\n else:\n res+=tmp//2\n tmp = 0\n ", "a[i]!=0", "a[i]", "a", "i", "0", "tmp+=a[i]", "tmp", "a[i]", "a", "i", "res+=tmp//2", "res", "tmp//2", "tmp", "2", "tmp = 0", "tmp", "0", "if i==n-1 and tmp>1:\n res+=tmp//2", "i==n-1 and tmp>1", "i==n-1", "i", "n-1", "n", "1", "tmp>1", "tmp", "1", "res+=tmp//2", "res", "tmp//2", "tmp", "2", "print(res)", "print", "res", "res+=tmp//2", "tmp//2", "res", "res = 0", "0", "res", "a = [0]*n", "[0]*n", "a", "zero = False", "False", "zero", "n = int(input())", "int(input())", "n", "res+=tmp//2", "tmp//2", "res", "zero = True", "True", "zero", "tmp+=a[i]", "a[i]", "tmp", "s = int(input())", "int(input())", "s", "tmp = 0", "0", "tmp", "tmp = 0", "0", "tmp" ]
n = int(input()) a = [0]*n res = 0 tmp = 0 zero = False for i in range(n): s = int(input()) a[i] = s if s==0: zero = True if not zero: print(sum(a)//2) exit() for i in range(n): if a[i]!=0: tmp+=a[i] else: res+=tmp//2 tmp = 0 if i==n-1 and tmp>1: res+=tmp//2 print(res)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 14, 2, 13, 17, 0, 13, 17, 9, 0, 13, 13, 0, 13, 2, 13, 17, 0, 13, 2, 13, 17, 4, 13, 13, 10, 4, 13, 10, 2, 13, 10, 2, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 13, 13, 10, 17, 13 ]
[ [ 64, 2 ], [ 58, 8 ], [ 61, 11 ], [ 15, 14 ], [ 65, 17 ], [ 49, 19 ], [ 50, 26 ], [ 68, 26 ], [ 70, 29 ], [ 67, 33 ], [ 71, 34 ], [ 62, 34 ], [ 56, 34 ], [ 52, 36 ], [ 68, 38 ], [ 50, 38 ], [ 55, 41 ], [ 68, 43 ], [ 50, 43 ], [ 53, 47 ], [ 59, 47 ], [ 49, 50 ], [ 52, 53 ], [ 55, 56 ], [ 58, 59 ], [ 61, 62 ], [ 64, 65 ], [ 71, 67 ], [ 62, 67 ], [ 56, 67 ], [ 67, 68 ], [ 70, 71 ] ]
[ "n = int(input())\n\nans = 0\nsurplus = 0\nfor i in range(n):\n a = int(input())\n if a == 0:\n surplus = 0\n continue\n a += surplus\n\n ans += a // 2\n surplus = a % 2\n\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "surplus = 0", "surplus", "0", "for i in range(n):\n a = int(input())\n if a == 0:\n surplus = 0\n continue\n a += surplus\n\n ans += a // 2\n surplus = a % 2", "i", "range(n)", "range", "n", "a = int(input())", "a", "int(input())", "int", "input()", "input", "if a == 0:\n surplus = 0\n continue\n ", "a == 0", "a", "0", "surplus = 0", "surplus", "0", "continue", "a += surplus", "a", "surplus", "ans += a // 2", "ans", "a // 2", "a", "2", "surplus = a % 2", "surplus", "a % 2", "a", "2", "print(ans)", "print", "ans", "a = int(input())", "int(input())", "a", "ans += a // 2", "a // 2", "ans", "surplus = a % 2", "a % 2", "surplus", "ans = 0", "0", "ans", "surplus = 0", "0", "surplus", "n = int(input())", "int(input())", "n", "a += surplus", "surplus", "a", "surplus = 0", "0", "surplus" ]
n = int(input()) ans = 0 surplus = 0 for i in range(n): a = int(input()) if a == 0: surplus = 0 continue a += surplus ans += a // 2 surplus = a % 2 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 18, 13, 13, 17, 0, 18, 13, 13, 2, 2, 18, 13, 13, 17, 17, 14, 2, 13, 17, 0, 13, 4, 13, 18, 13, 13, 18, 13, 2, 13, 17, 0, 13, 13, 0, 18, 13, 13, 13, 0, 18, 13, 2, 13, 17, 13, 14, 2, 13, 2, 13, 17, 0, 13, 4, 13, 18, 13, 13, 18, 13, 2, 13, 17, 0, 13, 13, 0, 18, 13, 13, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 10, 13, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 13, 13, 10, 4, 13, 10, 13, 13 ]
[ [ 118, 2 ], [ 10, 9 ], [ 119, 12 ], [ 115, 19 ], [ 124, 22 ], [ 26, 25 ], [ 119, 28 ], [ 121, 30 ], [ 100, 32 ], [ 67, 32 ], [ 37, 32 ], [ 116, 33 ], [ 25, 34 ], [ 40, 37 ], [ 116, 38 ], [ 25, 39 ], [ 100, 42 ], [ 67, 42 ], [ 37, 42 ], [ 116, 43 ], [ 25, 44 ], [ 25, 49 ], [ 127, 52 ], [ 37, 55 ], [ 100, 55 ], [ 67, 55 ], [ 116, 56 ], [ 25, 57 ], [ 116, 59 ], [ 25, 61 ], [ 130, 64 ], [ 128, 65 ], [ 134, 65 ], [ 70, 67 ], [ 116, 68 ], [ 25, 69 ], [ 128, 70 ], [ 134, 70 ], [ 77, 72 ], [ 116, 73 ], [ 25, 75 ], [ 128, 77 ], [ 134, 77 ], [ 25, 80 ], [ 119, 82 ], [ 133, 85 ], [ 67, 88 ], [ 37, 88 ], [ 100, 88 ], [ 116, 89 ], [ 25, 90 ], [ 116, 92 ], [ 25, 94 ], [ 136, 97 ], [ 134, 98 ], [ 128, 98 ], [ 103, 100 ], [ 116, 101 ], [ 25, 102 ], [ 134, 103 ], [ 128, 103 ], [ 110, 105 ], [ 116, 106 ], [ 25, 108 ], [ 134, 110 ], [ 128, 110 ], [ 137, 113 ], [ 131, 113 ], [ 122, 113 ], [ 125, 113 ], [ 115, 116 ], [ 118, 119 ], [ 121, 122 ], [ 124, 125 ], [ 127, 128 ], [ 128, 130 ], [ 134, 130 ], [ 130, 131 ], [ 133, 134 ], [ 134, 136 ], [ 128, 136 ], [ 136, 137 ] ]
[ "N=int(input())\nA=[int(input()) for i in range(N)]\nans=0\nfor i in range(N):\n ans+=A[i]//2\n A[i]-=(A[i]//2*2)\n if i>0:\n d=min(A[i],A[i-1])\n ans+=d\n A[i]-=d\n A[i-1]-=d\n if i<N-1:\n d=min(A[i],A[i+1])\n ans+=d\n A[i]-=d\n A[i+1]-=d\nprint(ans)", "N=int(input())", "N", "int(input())", "int", "input()", "input", "int(input()) for i in range(N)", "for i in range(N)", "i", "range(N)", "range", "N", "for i in range(N)", "int(input())", "int", "input()", "input", "A=[int(input()) for i in range(N)]", "A", "[int(input()) for i in range(N)]", "ans=0", "ans", "0", "for i in range(N):\n ans+=A[i]//2\n A[i]-=(A[i]//2*2)\n if i>0:\n d=min(A[i],A[i-1])\n ans+=d\n A[i]-=d\n A[i-1]-=d\n if i<N-1:\n d=min(A[i],A[i+1])\n ans+=d\n A[i]-=d\n A[i+1]-=d", "i", "range(N)", "range", "N", "ans+=A[i]//2", "ans", "A[i]//2", "A[i]", "A", "i", "2", "A[i]-=(A[i]//2*2)", "A[i]", "A", "i", "A[i]//2*2", "A[i]//2", "A[i]", "A", "i", "2", "2", "if i>0:\n d=min(A[i],A[i-1])\n ans+=d\n A[i]-=d\n A[i-1]-=d\n ", "i>0", "i", "0", "d=min(A[i],A[i-1])", "d", "min(A[i],A[i-1])", "min", "A[i]", "A", "i", "A[i-1]", "A", "i-1", "i", "1", "ans+=d", "ans", "d", "A[i]-=d", "A[i]", "A", "i", "d", "A[i-1]-=d", "A[i-1]", "A", "i-1", "i", "1", "d", "if i<N-1:\n d=min(A[i],A[i+1])\n ans+=d\n A[i]-=d\n A[i+1]-=d", "i<N-1", "i", "N-1", "N", "1", "d=min(A[i],A[i+1])", "d", "min(A[i],A[i+1])", "min", "A[i]", "A", "i", "A[i+1]", "A", "i+1", "i", "1", "ans+=d", "ans", "d", "A[i]-=d", "A[i]", "A", "i", "d", "A[i+1]-=d", "A[i+1]", "A", "i+1", "i", "1", "d", "print(ans)", "print", "ans", "A=[int(input()) for i in range(N)]", "[int(input()) for i in range(N)]", "A", "N=int(input())", "int(input())", "N", "ans+=A[i]//2", "A[i]//2", "ans", "ans=0", "0", "ans", "d=min(A[i],A[i-1])", "min(A[i],A[i-1])", "d", "ans+=d", "d", "ans", "d=min(A[i],A[i+1])", "min(A[i],A[i+1])", "d", "ans+=d", "d", "ans" ]
N=int(input()) A=[int(input()) for i in range(N)] ans=0 for i in range(N): ans+=A[i]//2 A[i]-=(A[i]//2*2) if i>0: d=min(A[i],A[i-1]) ans+=d A[i]-=d A[i-1]-=d if i<N-1: d=min(A[i],A[i+1]) ans+=d A[i]-=d A[i+1]-=d print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 39, 28, 13, 4, 13, 13, 4, 18, 13, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 18, 13, 13, 17, 0, 18, 13, 13, 2, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 13, 17, 2, 2, 13, 17, 13, 2, 18, 13, 2, 13, 17, 17, 0, 13, 17, 0, 18, 13, 13, 17, 0, 18, 13, 2, 13, 17, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 39, 13, 10, 2, 13, 10, 17, 13 ]
[ [ 89, 2 ], [ 92, 8 ], [ 12, 11 ], [ 90, 14 ], [ 93, 17 ], [ 86, 24 ], [ 28, 27 ], [ 90, 30 ], [ 95, 32 ], [ 71, 34 ], [ 39, 34 ], [ 93, 35 ], [ 27, 36 ], [ 42, 39 ], [ 93, 40 ], [ 27, 41 ], [ 71, 43 ], [ 39, 43 ], [ 93, 44 ], [ 27, 45 ], [ 39, 51 ], [ 71, 51 ], [ 93, 52 ], [ 27, 53 ], [ 27, 57 ], [ 90, 59 ], [ 93, 62 ], [ 27, 64 ], [ 98, 68 ], [ 74, 71 ], [ 93, 72 ], [ 27, 73 ], [ 81, 76 ], [ 93, 77 ], [ 27, 79 ], [ 99, 84 ], [ 96, 84 ], [ 87, 84 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ] ]
[ "N = int(input())\nA = []\nfor _ in range(N):\n A.append(int(input()))\n\nans = 0\nfor i in range(N):\n ans += A[i] // 2\n A[i] = A[i] % 2\n if A[i] == 1 and i + 1 < N and A[i + 1] > 0:\n ans += 1\n A[i] -= 1\n A[i + 1] -= 1\n\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "A = []", "A", "[]", "for _ in range(N):\n A.append(int(input()))", "_", "range(N)", "range", "N", "A.append(int(input()))", "A.append", "A", "append", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "for i in range(N):\n ans += A[i] // 2\n A[i] = A[i] % 2\n if A[i] == 1 and i + 1 < N and A[i + 1] > 0:\n ans += 1\n A[i] -= 1\n A[i + 1] -= 1", "i", "range(N)", "range", "N", "ans += A[i] // 2", "ans", "A[i] // 2", "A[i]", "A", "i", "2", "A[i] = A[i] % 2", "A[i]", "A", "i", "A[i] % 2", "A[i]", "A", "i", "2", "if A[i] == 1 and i + 1 < N and A[i + 1] > 0:\n ans += 1\n A[i] -= 1\n A[i + 1] -= 1", "A[i] == 1 and i + 1 < N and A[i + 1] > 0", "A[i] == 1 and i + 1 < N", "A[i] == 1", "A[i]", "A", "i", "1", "i + 1 < N", "i + 1", "i", "1", "N", "A[i + 1] > 0", "A[i + 1]", "A", "i + 1", "i", "1", "0", "ans += 1", "ans", "1", "A[i] -= 1", "A[i]", "A", "i", "1", "A[i + 1] -= 1", "A[i + 1]", "A", "i + 1", "i", "1", "1", "print(ans)", "print", "ans", "ans = 0", "0", "ans", "N = int(input())", "int(input())", "N", "A = []", "[]", "A", "ans += A[i] // 2", "A[i] // 2", "ans", "ans += 1", "1", "ans" ]
N = int(input()) A = [] for _ in range(N): A.append(int(input())) ans = 0 for i in range(N): ans += A[i] // 2 A[i] = A[i] % 2 if A[i] == 1 and i + 1 < N and A[i + 1] > 0: ans += 1 A[i] -= 1 A[i + 1] -= 1 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 0, 13, 2, 2, 13, 13, 17, 14, 2, 2, 2, 2, 13, 13, 17, 17, 2, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 4, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 68, 2 ], [ 10, 9 ], [ 69, 12 ], [ 71, 19 ], [ 59, 22 ], [ 74, 25 ], [ 29, 28 ], [ 72, 28 ], [ 65, 31 ], [ 28, 34 ], [ 75, 35 ], [ 78, 35 ], [ 63, 35 ], [ 28, 42 ], [ 75, 43 ], [ 78, 43 ], [ 63, 43 ], [ 28, 47 ], [ 62, 50 ], [ 77, 53 ], [ 66, 57 ], [ 60, 57 ], [ 59, 60 ], [ 62, 63 ], [ 65, 66 ], [ 68, 69 ], [ 71, 72 ], [ 74, 75 ], [ 77, 78 ] ]
[ "n = int(input())\nalst = [int(input()) for _ in range(n)]\ncnt = 0\nbef = 0\nfor num in alst:\n cnt += (num + bef) // 2\n if (num + bef) % 2 == 1 and num > 0:\n bef = 1\n else:\n bef = 0\nprint(cnt)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "int(input()) for _ in range(n)", "for _ in range(n)", "_", "range(n)", "range", "n", "for _ in range(n)", "int(input())", "int", "input()", "input", "alst = [int(input()) for _ in range(n)]", "alst", "[int(input()) for _ in range(n)]", "cnt = 0", "cnt", "0", "bef = 0", "bef", "0", "for num in alst:\n cnt += (num + bef) // 2\n if (num + bef) % 2 == 1 and num > 0:\n bef = 1\n else:\n bef = 0", "num", "alst", "cnt += (num + bef) // 2", "cnt", "(num + bef) // 2", "num + bef", "num", "bef", "2", "if (num + bef) % 2 == 1 and num > 0:\n bef = 1\n else:\n bef = 0", "(num + bef) % 2 == 1 and num > 0", "(num + bef) % 2 == 1", "(num + bef) % 2", "num + bef", "num", "bef", "2", "1", "num > 0", "num", "0", "bef = 1", "bef", "1", "bef = 0", "bef", "0", "print(cnt)", "print", "cnt", "cnt = 0", "0", "cnt", "bef = 1", "1", "bef", "cnt += (num + bef) // 2", "(num + bef) // 2", "cnt", "n = int(input())", "int(input())", "n", "alst = [int(input()) for _ in range(n)]", "[int(input()) for _ in range(n)]", "alst", "bef = 0", "0", "bef", "bef = 0", "0", "bef" ]
n = int(input()) alst = [int(input()) for _ in range(n)] cnt = 0 bef = 0 for num in alst: cnt += (num + bef) // 2 if (num + bef) % 2 == 1 and num > 0: bef = 1 else: bef = 0 print(cnt)
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 12, 13, 29, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 23, 13, 13, 23, 13, 13, 12, 13, 42, 13, 29, 13, 23, 13, 23, 13, 12, 13, 23, 13, 23, 13, 12, 13, 0, 13, 4, 13, 4, 13, 41, 28, 13, 2, 39, 17, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 0, 13, 2, 2, 13, 13, 17, 0, 13, 2, 2, 13, 13, 2, 17, 13, 0, 13, 13, 0, 13, 4, 13, 13, 13, 4, 13, 13, 4, 13, 10, 12, 13, 10, 12, 13, 10, 18, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 114, 4 ], [ 27, 14 ], [ 24, 17 ], [ 115, 21 ], [ 25, 24 ], [ 28, 27 ], [ 36, 34 ], [ 36, 36 ], [ 38, 38 ], [ 42, 42 ], [ 44, 44 ], [ 49, 48 ], [ 115, 52 ], [ 56, 55 ], [ 48, 59 ], [ 115, 64 ], [ 67, 66 ], [ 70, 69 ], [ 73, 72 ], [ 76, 75 ], [ 66, 75 ], [ 79, 78 ], [ 75, 81 ], [ 72, 82 ], [ 97, 82 ], [ 86, 85 ], [ 75, 88 ], [ 72, 89 ], [ 97, 89 ], [ 78, 92 ], [ 95, 94 ], [ 78, 95 ], [ 98, 97 ], [ 85, 100 ], [ 75, 101 ], [ 94, 104 ], [ 69, 104 ], [ 112, 106 ], [ 114, 115 ] ]
[ "import sys\ninput = sys.stdin.readline\n\n# from collections import deque\n\ndef linput(_t=int, cnv=list):\n return cnv(map(_t, input().split()))\n\ndef gcd(n,m):\n while m: n,m = m, n%m\n return n\n\ndef lcm(n,m): return n*m//gcd(n,m)\n\ndef main():\n N = int(input())\n vA = [int(input()) for _ in [0,]*N]\n\n res = 0\n odd = 0\n\n for a in vA:\n x = (a+odd)//2\n k = (a+odd) - 2*x\n res += x\n odd = min(k,a)\n # print(res,a,x,odd)####\n\n print(res)\n # print(\"No Yes\".split()[res])\n\nmain()", "import sys", "sys", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "def linput(_t=int, cnv=list):\n return cnv(map(_t, input().split()))", "linput", "return cnv(map(_t, input().split()))", "cnv(map(_t, input().split()))", "cnv", "map(_t, input().split())", "map", "_t", "input().split()", "().split", "()", "input", "split", "_t=int", "_t", "int", "cnv=list", "cnv", "list", "def gcd(n,m):\n while m: n,m = m, n%m\n return n", "gcd", "while m: n,m = m, n%m\n ", "m", "return n", "n", "n", "n", "m", "m", "def lcm(n,m): return n*m//gcd(n,m)", "lcm", "n", "n", "m", "m", "def main():\n N = int(input())\n vA = [int(input()) for _ in [0,]*N]\n\n res = 0\n odd = 0\n\n for a in vA:\n x = (a+odd)//2\n k = (a+odd) - 2*x\n res += x\n odd = min(k,a)\n # print(res,a,x,odd)####\n\n print(res)\n # print(\"No Yes\".split()[res])", "main", "N = int(input())", "N", "int(input())", "int", "input()", "input", "int(input()) for _ in [0,]*N", "for _ in [0,]*N", "_", "[0,]*N", "[0,]", "0", "N", "for _ in [0,]*N", "int(input())", "int", "input()", "input", "vA = [int(input()) for _ in [0,]*N]", "vA", "[int(input()) for _ in [0,]*N]", "res = 0", "res", "0", "odd = 0", "odd", "0", "for a in vA:\n x = (a+odd)//2\n k = (a+odd) - 2*x\n res += x\n odd = min(k,a)\n # print(res,a,x,odd)####\n\n ", "a", "vA", "x = (a+odd)//2", "x", "(a+odd)//2", "a+odd", "a", "odd", "2", "k = (a+odd) - 2*x", "k", "(a+odd) - 2*x", "a+odd", "a", "odd", "2*x", "2", "x", "res += x", "res", "x", "odd = min(k,a)", "odd", "min(k,a)", "min", "k", "a", "print(res)", "print", "res", "main()", "main", "def lcm(n,m): return n*m//gcd(n,m)", "def lcm(n,m): return n*m//gcd(n,m)", "lcm", "def main():\n N = int(input())\n vA = [int(input()) for _ in [0,]*N]\n\n res = 0\n odd = 0\n\n for a in vA:\n x = (a+odd)//2\n k = (a+odd) - 2*x\n res += x\n odd = min(k,a)\n # print(res,a,x,odd)####\n\n print(res)\n # print(\"No Yes\".split()[res])", "def main():\n N = int(input())\n vA = [int(input()) for _ in [0,]*N]\n\n res = 0\n odd = 0\n\n for a in vA:\n x = (a+odd)//2\n k = (a+odd) - 2*x\n res += x\n odd = min(k,a)\n # print(res,a,x,odd)####\n\n print(res)\n # print(\"No Yes\".split()[res])", "main", "input = sys.stdin.readline", "sys.stdin.readline", "input", "def linput(_t=int, cnv=list):\n return cnv(map(_t, input().split()))", "def linput(_t=int, cnv=list):\n return cnv(map(_t, input().split()))", "linput", "def gcd(n,m):\n while m: n,m = m, n%m\n return n", "def gcd(n,m):\n while m: n,m = m, n%m\n return n", "gcd" ]
import sys input = sys.stdin.readline # from collections import deque def linput(_t=int, cnv=list): return cnv(map(_t, input().split())) def gcd(n,m): while m: n,m = m, n%m return n def lcm(n,m): return n*m//gcd(n,m) def main(): N = int(input()) vA = [int(input()) for _ in [0,]*N] res = 0 odd = 0 for a in vA: x = (a+odd)//2 k = (a+odd) - 2*x res += x odd = min(k,a) # print(res,a,x,odd)#### print(res) # print("No Yes".split()[res]) main()
[ 7, 15, 13, 15, 15, 13, 15, 15, 15, 15, 13, 4, 18, 13, 13, 17, 0, 13, 18, 18, 13, 13, 13, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 18, 13, 13, 17, 0, 18, 13, 13, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 14, 2, 2, 18, 13, 13, 17, 40, 18, 13, 2, 13, 17, 17, 0, 18, 13, 13, 17, 0, 18, 13, 2, 13, 17, 17, 0, 13, 17, 4, 13, 13, 10, 2, 13, 10, 18, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 113, 17 ], [ 125, 24 ], [ 114, 31 ], [ 36, 35 ], [ 126, 38 ], [ 114, 43 ], [ 116, 45 ], [ 122, 48 ], [ 52, 51 ], [ 126, 54 ], [ 110, 56 ], [ 92, 58 ], [ 63, 58 ], [ 117, 59 ], [ 51, 60 ], [ 66, 63 ], [ 117, 64 ], [ 51, 65 ], [ 92, 67 ], [ 63, 67 ], [ 117, 68 ], [ 51, 69 ], [ 51, 73 ], [ 126, 75 ], [ 63, 80 ], [ 92, 80 ], [ 117, 81 ], [ 51, 82 ], [ 117, 86 ], [ 51, 88 ], [ 95, 92 ], [ 117, 93 ], [ 51, 94 ], [ 102, 97 ], [ 117, 98 ], [ 51, 100 ], [ 119, 104 ], [ 120, 108 ], [ 111, 108 ], [ 123, 108 ], [ 110, 111 ], [ 113, 114 ], [ 116, 117 ], [ 119, 120 ], [ 122, 123 ], [ 125, 126 ] ]
[ "import sys\nfrom collections import defaultdict, deque\nimport bisect\nfrom heapq import *\nfrom math import factorial, ceil, floor\nfrom collections import defaultdict\nimport itertools\nsys.setrecursionlimit(200000)\ninput = sys.stdin.readline\n\n# N, M, = map(int, input().split())\n# N = int(input())\n# L = [int(v) for v in input().split()]\n# L = [[int(v) for v in input().split()] for _ in range(N)]\n# L = [int(input()) for _ in range(N)]\n# L = [list(input().strip()) for _ in range(N)]\n# S = input().strip()\n\nN, = map(int, input().split())\nL = [int(input()) for _ in range(N)]\n\nans = 0\nfor i in range(N):\n ans += L[i] //2\n L[i] = L[i] % 2\n\n if i < N - 1:\n if L[i] == 1 and L[i + 1] >= 1:\n L[i] = 0\n L[i + 1] -= 1\n ans += 1\n\nprint(ans)", "import sys", "sys", "from collections import defaultdict, deque", "import bisect", "bisect", "from heapq import *", "from math import factorial, ceil, floor", "from collections import defaultdict", "import itertools", "itertools", "sys.setrecursionlimit(200000)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "200000", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "N, = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "int(input()) for _ in range(N)", "for _ in range(N)", "_", "range(N)", "range", "N", "for _ in range(N)", "int(input())", "int", "input()", "input", "L = [int(input()) for _ in range(N)]", "L", "[int(input()) for _ in range(N)]", "ans = 0", "ans", "0", "for i in range(N):\n ans += L[i] //2\n L[i] = L[i] % 2\n\n if i < N - 1:\n if L[i] == 1 and L[i + 1] >= 1:\n L[i] = 0\n L[i + 1] -= 1\n ans += 1", "i", "range(N)", "range", "N", "ans += L[i] //2", "ans", "L[i] //2", "L[i]", "L", "i", "2", "L[i] = L[i] % 2", "L[i]", "L", "i", "L[i] % 2", "L[i]", "L", "i", "2", "if i < N - 1:\n if L[i] == 1 and L[i + 1] >= 1:\n L[i] = 0\n L[i + 1] -= 1\n ans += 1", "i < N - 1", "i", "N - 1", "N", "1", "if L[i] == 1 and L[i + 1] >= 1:\n L[i] = 0\n L[i + 1] -= 1\n ans += 1", "L[i] == 1 and L[i + 1] >= 1", "L[i] == 1", "L[i]", "L", "i", "1", "L[i + 1] >= 1", "L[i + 1]", "L", "i + 1", "i", "1", "1", "L[i] = 0", "L[i]", "L", "i", "0", "L[i + 1] -= 1", "L[i + 1]", "L", "i + 1", "i", "1", "1", "ans += 1", "ans", "1", "print(ans)", "print", "ans", "ans += L[i] //2", "L[i] //2", "ans", "input = sys.stdin.readline", "sys.stdin.readline", "input", "L = [int(input()) for _ in range(N)]", "[int(input()) for _ in range(N)]", "L", "ans += 1", "1", "ans", "ans = 0", "0", "ans", "N, = map(int, input().split())", "map(int, input().split())", "N" ]
import sys from collections import defaultdict, deque import bisect from heapq import * from math import factorial, ceil, floor from collections import defaultdict import itertools sys.setrecursionlimit(200000) input = sys.stdin.readline # N, M, = map(int, input().split()) # N = int(input()) # L = [int(v) for v in input().split()] # L = [[int(v) for v in input().split()] for _ in range(N)] # L = [int(input()) for _ in range(N)] # L = [list(input().strip()) for _ in range(N)] # S = input().strip() N, = map(int, input().split()) L = [int(input()) for _ in range(N)] ans = 0 for i in range(N): ans += L[i] //2 L[i] = L[i] % 2 if i < N - 1: if L[i] == 1 and L[i + 1] >= 1: L[i] = 0 L[i + 1] -= 1 ans += 1 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 13, 17, 17, 14, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 17, 0, 13, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 17, 0, 13, 2, 2, 13, 13, 17, 0, 13, 17, 4, 13, 13, 10, 2, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13, 10, 2, 13 ]
[ [ 123, 2 ], [ 126, 8 ], [ 120, 10 ], [ 96, 13 ], [ 17, 16 ], [ 124, 19 ], [ 111, 21 ], [ 112, 29 ], [ 127, 29 ], [ 121, 32 ], [ 115, 32 ], [ 118, 32 ], [ 109, 32 ], [ 106, 32 ], [ 103, 32 ], [ 102, 35 ], [ 112, 41 ], [ 127, 41 ], [ 103, 42 ], [ 121, 42 ], [ 115, 42 ], [ 118, 42 ], [ 109, 42 ], [ 106, 42 ], [ 103, 47 ], [ 121, 47 ], [ 115, 47 ], [ 118, 47 ], [ 109, 47 ], [ 106, 47 ], [ 99, 50 ], [ 112, 52 ], [ 127, 52 ], [ 105, 55 ], [ 93, 58 ], [ 112, 61 ], [ 127, 61 ], [ 103, 62 ], [ 121, 62 ], [ 115, 62 ], [ 118, 62 ], [ 109, 62 ], [ 106, 62 ], [ 108, 65 ], [ 103, 69 ], [ 121, 69 ], [ 115, 69 ], [ 118, 69 ], [ 109, 69 ], [ 106, 69 ], [ 129, 72 ], [ 112, 74 ], [ 127, 74 ], [ 117, 77 ], [ 132, 80 ], [ 112, 83 ], [ 127, 83 ], [ 103, 84 ], [ 121, 84 ], [ 115, 84 ], [ 118, 84 ], [ 109, 84 ], [ 106, 84 ], [ 114, 87 ], [ 133, 91 ], [ 130, 91 ], [ 94, 91 ], [ 100, 91 ], [ 97, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ], [ 117, 118 ], [ 120, 121 ], [ 123, 124 ], [ 126, 127 ], [ 129, 130 ], [ 132, 133 ] ]
[ "n = int(input())\nnow, bef = 0, 0\nans = 0\nfor i in range(n):\n now = int(input())\n if now == 0 and bef == 1:\n bef = 0\n if (now+bef)%2 == 0:\n if bef == 0:\n ans += now//2\n bef = 0\n else:\n ans += (now+bef)//2\n bef = 0\n else:\n if bef == 0:\n ans += now//2\n bef = 1\n else:\n ans += (now+bef)//2\n bef = 1\n\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "now, bef = 0, 0", "now", "0", "bef", "0", "ans = 0", "ans", "0", "for i in range(n):\n now = int(input())\n if now == 0 and bef == 1:\n bef = 0\n if (now+bef)%2 == 0:\n if bef == 0:\n ans += now//2\n bef = 0\n else:\n ans += (now+bef)//2\n bef = 0\n else:\n if bef == 0:\n ans += now//2\n bef = 1\n else:\n ans += (now+bef)//2\n bef = 1", "i", "range(n)", "range", "n", "now = int(input())", "now", "int(input())", "int", "input()", "input", "if now == 0 and bef == 1:\n bef = 0\n ", "now == 0 and bef == 1", "now == 0", "now", "0", "bef == 1", "bef", "1", "bef = 0", "bef", "0", "if (now+bef)%2 == 0:\n if bef == 0:\n ans += now//2\n bef = 0\n else:\n ans += (now+bef)//2\n bef = 0\n else:\n if bef == 0:\n ans += now//2\n bef = 1\n else:\n ans += (now+bef)//2\n bef = 1", "(now+bef)%2 == 0", "(now+bef)%2", "now+bef", "now", "bef", "2", "0", "if bef == 0:\n ans += now//2\n bef = 0\n else:\n ans += (now+bef)//2\n bef = 0\n ", "bef == 0", "bef", "0", "ans += now//2", "ans", "now//2", "now", "2", "bef = 0", "bef", "0", "ans += (now+bef)//2", "ans", "(now+bef)//2", "now+bef", "now", "bef", "2", "bef = 0", "bef", "0", "if bef == 0:\n ans += now//2\n bef = 1\n else:\n ans += (now+bef)//2\n bef = 1", "bef == 0", "bef", "0", "ans += now//2", "ans", "now//2", "now", "2", "bef = 1", "bef", "1", "ans += (now+bef)//2", "ans", "(now+bef)//2", "now+bef", "now", "bef", "2", "bef = 1", "bef", "1", "print(ans)", "print", "ans", "ans += (now+bef)//2", "(now+bef)//2", "ans", "ans = 0", "0", "ans", "ans += now//2", "now//2", "ans", "bef = 0", "0", "bef", "bef = 0", "0", "bef", "bef = 0", "0", "bef", "now = int(input())", "int(input())", "now", "bef = 1", "1", "bef", "bef = 1", "1", "bef", "bef = 0, 0", "0", "bef", "n = int(input())", "int(input())", "n", "now, bef = 0, 0", "0", "now", "ans += now//2", "now//2", "ans", "ans += (now+bef)//2", "(now+bef)//2", "ans" ]
n = int(input()) now, bef = 0, 0 ans = 0 for i in range(n): now = int(input()) if now == 0 and bef == 1: bef = 0 if (now+bef)%2 == 0: if bef == 0: ans += now//2 bef = 0 else: ans += (now+bef)//2 bef = 0 else: if bef == 0: ans += now//2 bef = 1 else: ans += (now+bef)//2 bef = 1 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 13, 14, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 4, 13, 13, 10, 13, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 51, 2 ], [ 54, 8 ], [ 57, 11 ], [ 15, 14 ], [ 52, 17 ], [ 66, 19 ], [ 48, 25 ], [ 67, 26 ], [ 67, 29 ], [ 69, 32 ], [ 49, 34 ], [ 58, 34 ], [ 61, 34 ], [ 60, 37 ], [ 63, 40 ], [ 61, 42 ], [ 49, 42 ], [ 58, 42 ], [ 64, 46 ], [ 70, 46 ], [ 55, 46 ], [ 67, 48 ], [ 48, 49 ], [ 51, 52 ], [ 54, 55 ], [ 57, 58 ], [ 60, 61 ], [ 63, 64 ], [ 66, 67 ], [ 69, 70 ] ]
[ "n = int(input())\nans = 0\nsums = 0\nfor i in range(n):\n a = int(input())\n sums += a\n if a == 0:\n ans += sums // 2\n sums = 0\nans += sums // 2\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "sums = 0", "sums", "0", "for i in range(n):\n a = int(input())\n sums += a\n if a == 0:\n ans += sums // 2\n sums = 0", "i", "range(n)", "range", "n", "a = int(input())", "a", "int(input())", "int", "input()", "input", "sums += a", "sums", "a", "if a == 0:\n ans += sums // 2\n sums = 0", "a == 0", "a", "0", "ans += sums // 2", "ans", "sums // 2", "sums", "2", "sums = 0", "sums", "0", "ans += sums // 2", "ans", "sums // 2", "sums", "2", "print(ans)", "print", "ans", "sums += a", "a", "sums", "n = int(input())", "int(input())", "n", "ans = 0", "0", "ans", "sums = 0", "0", "sums", "sums = 0", "0", "sums", "ans += sums // 2", "sums // 2", "ans", "a = int(input())", "int(input())", "a", "ans += sums // 2", "sums // 2", "ans" ]
n = int(input()) ans = 0 sums = 0 for i in range(n): a = int(input()) sums += a if a == 0: ans += sums // 2 sums = 0 ans += sums // 2 print(ans)
[ 7, 15, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 0, 13, 2, 39, 17, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 2, 18, 13, 2, 13, 17, 18, 13, 13, 17, 14, 18, 13, 2, 13, 17, 4, 13, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 2, 13 ]
[ [ 56, 3 ], [ 11, 10 ], [ 57, 13 ], [ 59, 20 ], [ 62, 26 ], [ 30, 29 ], [ 57, 32 ], [ 65, 34 ], [ 60, 38 ], [ 29, 40 ], [ 60, 43 ], [ 29, 44 ], [ 60, 48 ], [ 29, 50 ], [ 66, 54 ], [ 63, 54 ], [ 56, 57 ], [ 59, 60 ], [ 62, 63 ], [ 65, 66 ] ]
[ "from copy import copy\nn=int(input())\na=[0]+[int(input()) for _ in range(n)]\nans=0\nfor i in range(n):\n ans+=(a[i+1]+a[i])//2\n if a[i+1]:a[i+1]=(a[i+1]+a[i])%2\nprint(ans)", "from copy import copy", "n=int(input())", "n", "int(input())", "int", "input()", "input", "int(input()) for _ in range(n)", "for _ in range(n)", "_", "range(n)", "range", "n", "for _ in range(n)", "int(input())", "int", "input()", "input", "a=[0]+[int(input()) for _ in range(n)]", "a", "[0]+[int(input()) for _ in range(n)]", "[0]", "0", "[int(input()) for _ in range(n)]", "ans=0", "ans", "0", "for i in range(n):\n ans+=(a[i+1]+a[i])//2\n if a[i+1]:a[i+1]=(a[i+1]+a[i])%2", "i", "range(n)", "range", "n", "ans+=(a[i+1]+a[i])//2", "ans", "(a[i+1]+a[i])//2", "a[i+1]+a[i]", "a[i+1]", "a", "i+1", "i", "1", "a[i]", "a", "i", "2", "if a[i+1]:a[i+1]=(a[i+1]+a[i])", "a[i+1]", "a", "i+1", "i", "1", "print(ans)", "print", "ans", "n=int(input())", "int(input())", "n", "a=[0]+[int(input()) for _ in range(n)]", "[0]+[int(input()) for _ in range(n)]", "a", "ans=0", "0", "ans", "ans+=(a[i+1]+a[i])//2", "(a[i+1]+a[i])//2", "ans" ]
from copy import copy n=int(input()) a=[0]+[int(input()) for _ in range(n)] ans=0 for i in range(n): ans+=(a[i+1]+a[i])//2 if a[i+1]:a[i+1]=(a[i+1]+a[i])%2 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 0, 13, 17, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13 ]
[ [ 76, 2 ], [ 91, 8 ], [ 94, 11 ], [ 15, 14 ], [ 77, 17 ], [ 70, 19 ], [ 95, 27 ], [ 80, 27 ], [ 86, 27 ], [ 89, 27 ], [ 71, 30 ], [ 74, 30 ], [ 73, 33 ], [ 88, 36 ], [ 82, 39 ], [ 95, 44 ], [ 80, 44 ], [ 86, 44 ], [ 89, 44 ], [ 71, 47 ], [ 74, 47 ], [ 85, 50 ], [ 97, 53 ], [ 74, 55 ], [ 71, 55 ], [ 74, 60 ], [ 71, 60 ], [ 79, 64 ], [ 98, 68 ], [ 83, 68 ], [ 92, 68 ], [ 70, 71 ], [ 73, 74 ], [ 76, 77 ], [ 79, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ] ]
[ "n = int(input())\nans = 0\nnex = 0\nfor i in range(n):\n now = int(input())\n if nex == 1 and now > 0:\n now -= 1\n nex = 0\n ans += 1\n elif nex == 1 and now == 0:\n nex = 0 \n ans += now//2\n if now % 2 == 1:\n nex = 1\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "nex = 0", "nex", "0", "for i in range(n):\n now = int(input())\n if nex == 1 and now > 0:\n now -= 1\n nex = 0\n ans += 1\n elif nex == 1 and now == 0:\n nex = 0 \n ans += now//2\n if now % 2 == 1:\n nex = 1", "i", "range(n)", "range", "n", "now = int(input())", "now", "int(input())", "int", "input()", "input", "if nex == 1 and now > 0:\n now -= 1\n nex = 0\n ans += 1\n elif nex == 1 and now == 0:\n nex = 0 \n ", "nex == 1 and now > 0", "nex == 1", "nex", "1", "now > 0", "now", "0", "now -= 1", "now", "1", "nex = 0", "nex", "0", "ans += 1", "ans", "1", "elif nex == 1 and now == 0:\n nex = 0 \n ", "nex == 1 and now == 0", "nex == 1", "nex", "1", "now == 0", "now", "0", "nex = 0", "nex", "0", "ans += now//2", "ans", "now//2", "now", "2", "if now % 2 == 1:\n nex = 1", "now % 2 == 1", "now % 2", "now", "2", "1", "nex = 1", "nex", "1", "print(ans)", "print", "ans", "now = int(input())", "int(input())", "now", "now -= 1", "1", "now", "n = int(input())", "int(input())", "n", "nex = 1", "1", "nex", "ans += 1", "1", "ans", "nex = 0", "0", "nex", "nex = 0", "0", "nex", "ans = 0", "0", "ans", "nex = 0", "0", "nex", "ans += now//2", "now//2", "ans" ]
n = int(input()) ans = 0 nex = 0 for i in range(n): now = int(input()) if nex == 1 and now > 0: now -= 1 nex = 0 ans += 1 elif nex == 1 and now == 0: nex = 0 ans += now//2 if now % 2 == 1: nex = 1 print(ans)