For this Question: Given two strings A and B. The task is to find if the string A can be obtained by rotating the string B by 2 places.The first line of the input contains the string A.
The second line of the input contains the string B.

Constaint:-

1 <= |A|, |B| <= 100Print 1 if the string A can be obtained by rotating string B by two places, else print 0.Sample Input:
amazon
azonam

Sample Output:
1

Input: string1 = “amazon”, string2 = “azonam”
Output: Yes
// rotated anti-clockwise

Input: string1 = “amazon”, string2 = “onamaz”
Output: Yes
// rotated clockwise, I have written this Solution Code: a=input()
b=input()
if a[0]==b[len(b)-2] and a[1]==b[len(b)-1]:
	print(1)
else:print(0), In this Programming Language: Python, Now tell me if this Code is compilable or not?