#!/usr/bin/python3 #coding:utf-8 old=list(map(int,input().split("."))) current=list(map(int,input().split("."))) for i in range(3): if old[i]