import turtle
min=eval(input())
x=eval(input())
turtle.color(input(""))
turtle.pensize(10)
for i in range(x):
turtle.penup()
turtle.goto(0,-(20+min)*(i+1))
turtle.pendown()
turtle.circle((min+20)*(i+1))
import turtle
min=eval(input())
x=eval(input())
turtle.color(input(""))
turtle.pensize(10)
for i in range(x):
turtle.penup()
turtle.goto(0,-(20+min)*(i+1))
turtle.pendown()
turtle.circle((min+20)*(i+1))