#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
# 旋转字符串
# @param A string字符串 
# @param B string字符串 
# @return bool布尔型
#
class Solution:
    def solve(self , A: str, B: str) -> bool:
        # write code here
        n = len(A)
        for i in range(1,n):
            if A[i:]+A[:i]==B:#若存在符合条件的分割点,返回逻辑真
                return True
        return False#整个数组都不存在符合条件的分割点,返回逻辑假