Python 3, 123 bytes
I'm a newcomer, gotta start somewhere...
for l in G:
d = l.split(',')
s=d[(0 if len(d)==4 else 4):(2 if len(d)==4 else 6)]
print(int(s[0]),int(s[1]))
I'm a newcomer, gotta start somewhere...
for l in G:
d = l.split(',')
s=d[(0 if len(d)==4 else 4):(2 if len(d)==4 else 6)]
print(int(s[0]),int(s[1]))