class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: E = None
        self.w: E = None
        self.r: E = None
        self.t: I = None
        self.v: D = None
        self.s: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: A = None
        self.o: A = None
        self.v: D = None
        self.z: H = None
        self.t: B = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.y: D = None
        self.s: E = None
        self.o: D = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: A = None
        self.o: A = None
        self.v: D = None
        self.z: H = None
        self.t: B = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.y: D = None
        self.s: E = None
        self.o: D = None
        self.r: I = None
        self.txt = txt

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

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

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

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