5
1 w
2 e
3 w
4 e
5 s

# DATA GOES ABOVE THIS LINE

First line contains number of widgets to modify, followed by
For each widget to modify,
	the number of the widget to modify (0 to n-1)
	the new gravity (n, ne, e, se, s, sw, w, nw, c)
