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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: A = None
        self.w: A = None
        self.x: F = None
        self.y: A = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: A = None
        self.s: B = None
        self.w: F = None
        self.y: C = None
        self.v: A = None
        self.txt = txt

l = A("l")
a = B("a")
b = C("b")
i = D("i")
n = E("n")
m = F("m")
h = B("h")
j = F("j")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: A = None
        self.w: A = None
        self.x: F = None
        self.y: A = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: A = None
        self.s: B = None
        self.w: F = None
        self.y: C = None
        self.v: A = None
        self.txt = txt

l = A("l")
a = B("a")
b = C("b")
i = D("i")
n = E("n")
m = F("m")
h = B("h")
j = F("j")

l.r = n
a.q = n
a.r = n
a.x = m
a.w = i
a.o = i
a.u = l
b.o = h
b.v = h
b.s = n
i.s = b
i.y = b
i.t = l
i.o = n
n.z = b
n.q = l
n.w = l
n.y = l
n.x = m
n.r = i
m.z = h
m.o = l
m.v = l
m.s = a
m.w = j
m.y = b
h.q = n
h.r = n
h.x = j
h.w = i
h.o = i
h.u = l
j.z = h
j.s = h
j.o = l
j.v = l
j.w = m
j.y = b
assert a.x.o.r.z.v.txt == "h"