package main

import "strings"
/**
 * 旋转字符串
 * @param A string字符串 
 * @param B string字符串 
 * @return bool布尔型
*/
func solve( A string ,  B string ) bool {
    // write code here
    if len(A) == 0 && len(B) == 0{
        return true
    }
    if len(A) == 0 || len(B) == 0 || len(A) != len(B){
        return false
    }

    return strings.Index(A+A, B) != -1
}