class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: D = None
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: F = None
        self.y: F = None
        self.o: D = None
        self.z: G = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: E = None
        self.p: E = None
        self.x: B = None
        self.y: B = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: G = None
        self.t: E = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: A = None
        self.v: D = None
        self.y: C = None
        self.u: E = None
        self.z: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: F = None
        self.y: F = None
        self.o: D = None
        self.z: G = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: E = None
        self.p: E = None
        self.x: B = None
        self.y: B = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: G = None
        self.t: E = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: A = None
        self.v: D = None
        self.y: C = None
        self.u: E = None
        self.z: E = None
        self.txt = txt

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

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