class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: D = None
        self.w: A = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.x: F = None
        self.q: B = None
        self.v: B = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.x: F = None
        self.q: B = None
        self.v: B = None
        self.w: F = None
        self.txt = txt

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

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

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

b.t = c
b.q = j
b.w = i
b.z = d
b.v = h
a.p = i
e.v = c
e.y = c
e.s = c
e.o = g
e.q = g
h.u = d
h.x = d
h.w = d
h.p = i
h.q = m
h.v = m
c.s = e
d.o = c
d.x = c
d.y = c
d.t = a
d.p = i
m.p = b
g.v = c
g.y = c
g.s = c
g.o = e
g.q = e
i.t = c
i.q = h
i.w = b
i.z = d
i.v = j
j.u = d
j.x = d
j.w = d
j.p = b
j.q = m
j.v = m
assert h.p.w.t.s.q.o.s.s.txt == "e"