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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.z: D = None
        self.s: A = None
        self.o: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: H = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.z: D = None
        self.s: A = None
        self.o: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: H = None
        self.y: C = None
        self.txt = txt

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

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

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

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