class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: C = None
        self.v: I = None
        self.u: F = None
        self.y: A = None
        self.z: D = None
        self.r: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: C = None
        self.s: I = None
        self.z: F = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: I = None
        self.t: C = None
        self.y: C = None
        self.s: C = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: F = None
        self.x: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: C = None
        self.s: I = None
        self.z: F = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: I = None
        self.t: C = None
        self.y: C = None
        self.s: C = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: F = None
        self.x: B = None
        self.txt = txt

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

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

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