diff --git "a/BAEKJOON/1475_\353\260\251_\353\262\210\355\230\270.py" "b/BAEKJOON/1475_\353\260\251_\353\262\210\355\230\270.py" new file mode 100644 index 0000000..d2aacf5 --- /dev/null +++ "b/BAEKJOON/1475_\353\260\251_\353\262\210\355\230\270.py" @@ -0,0 +1,7 @@ +from collections import defaultdict + +N, cnt = input(), defaultdict(int) +for ch in N: + cnt[int(ch)] += 1 +cnt[6] = cnt[9] = (cnt[6] + cnt[9] + 1) // 2 +print(max(cnt.values())) \ No newline at end of file