class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: A = None
        self.o: B = None
        self.y: B = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: B = None
        self.r: D = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: D = None
        self.v: B = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: C = None
        self.w: C = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: C = None
        self.txt = txt

h = A("h")
l = B("l")
f = C("f")
n = D("n")
j = E("j")
i = A("i")
c = B("c")
d = B("d")
m = B("m")
b = B("b")

h.s = n
h.v = n
h.r = i
h.o = c
h.y = d
l.y = f
l.w = m
l.r = n
l.p = j
f.q = l
f.t = n
f.w = n
f.v = m
n.z = j
n.t = j
n.x = f
n.w = f
j.q = n
j.o = f
i.s = n
i.v = n
i.r = h
i.o = d
i.y = b
c.y = f
c.w = b
c.r = n
c.p = j
d.y = f
d.w = b
d.r = n
d.p = j
m.y = f
m.w = l
m.r = n
m.p = j
b.y = f
b.w = m
b.r = n
b.p = j
assert f.v.y.q.r.t.q.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: A = None
        self.o: B = None
        self.y: B = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: B = None
        self.r: D = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: D = None
        self.v: B = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: C = None
        self.w: C = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: C = None
        self.txt = txt

h = A("h")
l = B("l")
f = C("f")
n = D("n")
j = E("j")
i = A("i")
c = B("c")
d = B("d")
m = B("m")
b = B("b")

h.s = n
h.v = n
h.r = i
h.o = c
h.y = d
l.y = f
l.w = m
l.r = n
l.p = j
f.q = l
f.t = n
f.w = n
f.v = m
n.z = j
n.t = j
n.x = f
n.w = f
j.q = n
j.o = f
i.s = n
i.v = n
i.r = h
i.o = d
i.y = b
c.y = f
c.w = b
c.r = n
c.p = j
d.y = f
d.w = b
d.r = n
d.p = j
m.y = f
m.w = l
m.r = n
m.p = j
b.y = f
b.w = m
b.r = n
b.p = j
assert f.v.y.q.r.t.q.txt == "n"