class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: F = None
        self.x: B = None
        self.o: F = None
        self.r: F = None
        self.v: I = None
        self.t: C = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: F = None
        self.u: B = None
        self.p: A = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: F = None
        self.o: F = None
        self.p: E = None
        self.t: I = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: I = None
        self.p: D = None
        self.v: A = None
        self.u: B = None
        self.q: D = None
        self.y: B = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: A = None
        self.x: G = None
        self.v: C = None
        self.s: E = None
        self.r: I = None
        self.t: A = None
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: A = None
        self.s: F = None
        self.v: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: F = None
        self.u: B = None
        self.p: A = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: F = None
        self.o: F = None
        self.p: E = None
        self.t: I = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: I = None
        self.p: D = None
        self.v: A = None
        self.u: B = None
        self.q: D = None
        self.y: B = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: A = None
        self.x: G = None
        self.v: C = None
        self.s: E = None
        self.r: I = None
        self.t: A = None
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: A = None
        self.s: F = None
        self.v: I = None
        self.txt = txt

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

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

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