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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: F = None
        self.r: G = None
        self.s: H = None
        self.u: E = None
        self.t: G = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: B = None
        self.u: G = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: D = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: C = None
        self.x: D = None
        self.q: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: F = None
        self.r: G = None
        self.s: H = None
        self.u: E = None
        self.t: G = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: B = None
        self.u: G = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: D = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: C = None
        self.x: D = None
        self.q: B = None
        self.txt = txt

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

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