mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
33 lines
497 B
Python
33 lines
497 B
Python
def problem_p03502(input_data):
|
|
"""
|
|
|
|
author : halo2halo
|
|
|
|
date : 29, Jan, 2020
|
|
|
|
"""
|
|
|
|
import sys
|
|
|
|
# import itertools
|
|
import numpy as np
|
|
|
|
read = sys.stdin.buffer.read
|
|
|
|
readline = sys.stdin.buffer.readline
|
|
|
|
readlines = sys.stdin.buffer.readlines
|
|
|
|
sys.setrecursionlimit(10**7)
|
|
|
|
def Hershad(n):
|
|
|
|
if n == 0:
|
|
|
|
return 0
|
|
|
|
return n % 10 + Hershad(n // 10)
|
|
|
|
N = int(readline())
|
|
|
|
return "Yes" if N % Hershad(N) == 0 else "No"
|