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

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: F = None
        self.x: I = None
        self.o: B = None
        self.r: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: E = None
        self.p: G = None
        self.u: I = None
        self.q: H = None
        self.w: B = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: F = None
        self.x: I = None
        self.o: B = None
        self.r: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: E = None
        self.p: G = None
        self.u: I = None
        self.q: H = None
        self.w: B = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: G = None
        self.txt = txt

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

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

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