Beats 56% | Python 3 
Please UpvoteCode
# Please Upvote

# Code
```python3 []
class Solution:
    def hasSameDigits(self, s: str) -> bool:
        def operate(s):
            temp = ""
            for i in range(len(s)-1):
                temp+=str((int(s[i])+int(s[i+1]))%10)
            return temp
        while len(s)!=2:
            s = operate(s)
        return s[0]==s[1]
```
['Python3']