s=input() a=s[:-3] #後ろから3文字目 b=s[-3:] #前から3文字目まで print(s[1:3])#1文字目から3-1文字目まで print(a) print(b) print(a+","+b)