from turtle import *

setup(250, 200)

def p(x, y):
    penup(), setpos(x, y)
    pendown()
    setheading(0)

def star(n, x, y, d):
    p(x, y)
    u = 180 - 180 / n
    for _ in range (n):
        fd(d), rt(u)

speed(0)
hideturtle()
n = int(input("n = "))
x = int(input("x = "))
y = int(input("y = "))
d = int(input("d = "))
star(n, x, y, d)
done()