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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.x: J = None
        self.r: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: B = None
        self.p: B = None
        self.y: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: E = None
        self.o: I = None
        self.s: I = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: B = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.x: J = None
        self.r: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: B = None
        self.p: B = None
        self.y: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: E = None
        self.o: I = None
        self.s: I = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: B = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: B = None
        self.txt = txt

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

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