J. Immense integers
time limit per test
2 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
01
00101
00010
Output
1
Input
0001101110
0011111110
00000101
Output
3
Input
0100010110110001011011101
0101101011101101101010011
0000000000000000000011
Output
17