class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: B = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: B = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: A = None
        self.r: E = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: A = None
        self.t: F = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

j = A("j")
l = B("l")
d = C("d")
c = D("c")
e = E("e")
a = F("a")
i = D("i")
h = B("h")
n = C("n")
g = E("g")

j.p = a
j.t = l
j.y = i
l.q = c
l.u = h
l.t = j
d.s = e
d.r = e
d.y = e
d.q = j
c.o = i
c.q = j
c.t = a
c.s = h
e.r = n
e.y = g
e.t = g
e.z = i
e.x = i
e.v = d
a.v = e
i.o = c
i.q = j
i.t = a
i.s = l
h.q = i
h.u = l
h.t = j
n.s = e
n.r = e
n.y = e
n.q = j
g.r = n
g.y = e
g.t = e
g.z = i
g.v = d
g.x = c
assert d.r.v.y.z.t.v.txt == "
class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: B = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: B = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: A = None
        self.r: E = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: A = None
        self.t: F = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

j = A("j")
l = B("l")
d = C("d")
c = D("c")
e = E("e")
a = F("a")
i = D("i")
h = B("h")
n = C("n")
g = E("g")

j.p = a
j.t = l
j.y = i
l.q = c
l.u = h
l.t = j
d.s = e
d.r = e
d.y = e
d.q = j
c.o = i
c.q = j
c.t = a
c.s = h
e.r = n
e.y = g
e.t = g
e.z = i
e.x = i
e.v = d
a.v = e
i.o = c
i.q = j
i.t = a
i.s = l
h.q = i
h.u = l
h.t = j
n.s = e
n.r = e
n.y = e
n.q = j
g.r = n
g.y = e
g.t = e
g.z = i
g.v = d
g.x = c
assert d.r.v.y.z.t.v.txt == "e"