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

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

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

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: F = None
        self.p: I = None
        self.t: I = None
        self.y: A = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: F = None
        self.t: A = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: E = None
        self.q: E = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: C = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: F = None
        self.p: I = None
        self.t: I = None
        self.y: A = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: F = None
        self.t: A = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: E = None
        self.q: E = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: C = None
        self.t: G = None
        self.txt = txt

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

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