class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: D = None
        self.q: D = None
        self.x: B = None
        self.p: H = None
        self.u: D = None
        self.o: B = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: A = None
        self.p: E = None
        self.w: H = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.r: H = None
        self.t: D = None
        self.x: B = None
        self.p: E = None
        self.u: D = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: H = None
        self.q: C = None
        self.p: A = None
        self.v: A = None
        self.t: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: D = None
        self.o: H = None
        self.z: E = None
        self.v: D = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: B = None
        self.q: A = None
        self.w: G = None
        self.u: A = None
        self.txt = txt

j = A("j")
b = B("b")
n = C("n")
h = D("h")
c = E("c")
m = F("m")
i = G("i")
e = H("e")
l = H("l")

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: A = None
        self.p: E = None
        self.w: H = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.r: H = None
        self.t: D = None
        self.x: B = None
        self.p: E = None
        self.u: D = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: H = None
        self.q: C = None
        self.p: A = None
        self.v: A = None
        self.t: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: D = None
        self.o: H = None
        self.z: E = None
        self.v: D = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: B = None
        self.q: A = None
        self.w: G = None
        self.u: A = None
        self.txt = txt

j = A("j")
b = B("b")
n = C("n")
h = D("h")
c = E("c")
m = F("m")
i = G("i")
e = H("e")
l = H("l")

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