class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: C = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: G = None
        self.v: C = None
        self.y: E = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: G = None
        self.v: F = None
        self.r: A = None
        self.o: B = None
        self.x: A = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: G = None
        self.s: C = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: G = None
        self.o: B = None
        self.r: B = None
        self.u: D = None
        self.q: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

j = A("j")
a = B("a")
b = C("b")
m = D("m")
c = E("c")
i = F("i")
k = G("k")
l = H("l")

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: G = None
        self.v: C = None
        self.y: E = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: G = None
        self.v: F = None
        self.r: A = None
        self.o: B = None
        self.x: A = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: G = None
        self.s: C = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: G = None
        self.o: B = None
        self.r: B = None
        self.u: D = None
        self.q: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

j = A("j")
a = B("a")
b = C("b")
m = D("m")
c = E("c")
i = F("i")
k = G("k")
l = H("l")

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