纯水
#include <stdio.h>
int a1,a2,a3,b1,b2,b3;
int main(){
freopen("in.txt","r",stdin);
scanf("%d.%d.%d %d.%d.%d",&a1,&a2,&a3,&b1,&b2,&b3);
int inc = 0;
int c3 = (a3+b3)%29;
inc = (a3+b3)/29;
int c2 = (a2+b2+inc)%17;
inc = (a2+b2+inc)/17;
int c1 = a1+b1+inc;
printf("%d.%d.%d",c1,c2,c3);
return 0;
}