#
# @lc app=leetcode.cn id=551 lang=python3
#
# [551] 学生出勤记录 I
#

# @lc code=start
class Solution:
    def checkRecord(self, s: str) -> bool:
        from collections import Counter
        c = Counter(s)
        return c["A"] <2 and "LLL" not in s
        
# @lc code=end

