class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: D = None
        self.x: E = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: A = None
        self.v: A = None
        self.y: E = None
        self.w: B = None
        self.z: A = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: D = None
        self.r: C = None
        self.s: B = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.u: B = None
        self.x: E = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: C = None
        self.p: B = None
        self.x: B = None
        self.txt = txt

c = A("c")
m = B("m")
d = C("d")
b = D("b")
g = E("g")
e = F("e")
j = G("j")
k = H("k")
h = I("h")
l = A("l")

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: D = None
        self.x: E = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: A = None
        self.v: A = None
        self.y: E = None
        self.w: B = None
        self.z: A = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: D = None
        self.r: C = None
        self.s: B = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.u: B = None
        self.x: E = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: C = None
        self.p: B = None
        self.x: B = None
        self.txt = txt

c = A("c")
m = B("m")
d = C("d")
b = D("b")
g = E("g")
e = F("e")
j = G("j")
k = H("k")
h = I("h")
l = A("l")

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