#include main(){ int A,B,C; int f,s; scanf("%d.%d.%d",&A,&B,&C); f = A*1000000+B*1000+C; scanf("%d.%d.%d",&A,&B,&C); s = A*1000000+B*1000+C; printf("%s\n",f