302444: CF470G. Hamming Distance

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

G. Hamming Distancetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different. You are given two strings; calculate the distance between them.

Input

The input consists of two lines. Each line contains a string of characters 'A'-'Z' between 1 and 100 characters, inclusive. The strings have equal length.

Output

Output Hamming distance between the strings.

ExamplesInput
CODECHEF
TOPCODER
Output
6
Input
HAMMING
DISTANC
Output
6

Input

加入题单

上一题 下一题 算法标签: