class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: E = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: C = None
        self.t: H = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: H = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: I = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: H = None
        self.t: I = None
        self.q: F = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: C = None
        self.w: I = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: G = None
        self.q: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: C = None
        self.t: H = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: H = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: I = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: H = None
        self.t: I = None
        self.q: F = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: C = None
        self.w: I = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: G = None
        self.q: B = None
        self.txt = txt

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

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

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