s=input() a=s[ :-3 ] b=s[ -3: ] print(s[1:3]) print(a + "," + b)