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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: B = None
        self.q: F = None
        self.t: B = None
        self.z: F = None
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.w: E = None
        self.y: E = None
        self.r: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: B = None
        self.q: F = None
        self.t: B = None
        self.z: F = None
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.w: E = None
        self.y: E = None
        self.r: C = None
        self.txt = txt

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

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