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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: B = None
        self.q: B = None
        self.u: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.q: G = None
        self.u: E = None
        self.t: D = None
        self.z: F = None
        self.w: A = None
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: B = None
        self.q: B = None
        self.u: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.q: G = None
        self.u: E = None
        self.t: D = None
        self.z: F = None
        self.w: A = None
        self.r: F = None
        self.txt = txt

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

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