d1, m1, y1 = (int(a) for a in input().split(' ')) d2, m2, y2 = (int(a) for a in input().split(' ')) yd = y1 - y2 md = m1 - m2 dd = d1 - d2 if yd < 0: print(0) elif yd > 0: print(10000 * yd) elif md < 0: print(0) elif md > 0: print(500 * md) elif dd < 0: print(0) elif dd > 1: print(15 * dd) else: print(0)
댓글 없음:
댓글 쓰기