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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: G = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: J = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: C = None
        self.t: G = None
        self.o: F = None
        self.q: H = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: C = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.v: C = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: C = None
        self.q: E = None
        self.u: E = None
        self.v: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: J = None
        self.o: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: C = None
        self.q: I = None
        self.v: D = None
        self.x: H = None
        self.u: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: G = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: J = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: C = None
        self.t: G = None
        self.o: F = None
        self.q: H = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: C = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.v: C = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: C = None
        self.q: E = None
        self.u: E = None
        self.v: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: J = None
        self.o: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: C = None
        self.q: I = None
        self.v: D = None
        self.x: H = None
        self.u: I = None
        self.txt = txt

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

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