condition
1 = g
2 = e
3 = nd
5 = s