View abc080-b.py
n = input()
fx = sum(map(int, list(n)))
if int(n) % fx == 0:
print("Yes")
else:
print("No")
View abc079-b.py
l = [0] * 100
l[0] = 2
l[1] = 1
for i in range(2, 90):
l[i] = l[i-1] + l[i-2]
n = int(input())
print(l[n])
View abc078-b.py
x, y, z = map(int, input().split())
x -= 2 * z
x -= y
if x < 0:
print(0)
else:
print(1 + x // (y + z))
View abc077-b.py
import math
n = int(input())
print(int(math.sqrt(n)) ** 2)
View abc076-b.py
n = int(input())
k = int(input())
number = 1
for i in range(n):
number = min(number * 2, number + k)
print(number)
View abc080-a.py
n, a, b = map(int, input().split())
print(min(a * n, b))
View abc079-a.py
n = input()
if (n[0] == n[1] == n[2]) or (n[1] == n[2] == n[3]):
print("Yes")
else:
print("No")
View abc078-a.py
x, y = input().split(" ")
if x < y:
print("<")
elif x == y:
print("=")
else:
print(">")
View abc077-a.py
r1 = input()
r2 = input()
if r1 == r2[::-1] and r2 == r1[::-1]:
print("YES")
else:
print("NO")
View abc076-a.py
r = int(input())
g = int(input())
print(2 * g - r)