diff --git a/boj/1769.py b/boj/1769.py new file mode 100644 index 0000000..c8e7885 --- /dev/null +++ b/boj/1769.py @@ -0,0 +1,17 @@ +n=input() +count=0 +r=int(n) + +while len(n)>1: + r=0 + for i in n: + v=int(i) + r+=v + n=str(r) + count+=1 + +print(count) +if r%3==0: + print("YES") +else: + print("NO")