You will be given two strings, A and B. Print 1 if string B occurs at the end of string A. Otherwise, print 0.
soccer mom pet rock.
0
Complete the following task based on the instruction and optional input provided.### Instruction:
You will be given two strings, A and B. Print 1 if string B occurs at the end of string A. Otherwise, print 0.

### Input:
soccer mom pet rock.

### Output:
0