PAT(Advanced Level) Practice(with python)——1058 A+B in Hogwarts
CodeA,B=map(str,input().split())g1,s1,k1=A.split('.')g2,s2,k2=B.split('.')g=int(g1)+int(g2)s=int(s1)+int(s2)k=int(k1)+int(k2)ifk>=29:s+=1k%=29ifs>=17:g+=1s%=17print(str(g)+'.'+str(s)+'.'+str(k))