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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: F = None
        self.v: A = None
        self.o: C = None
        self.s: H = None
        self.x: G = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: G = None
        self.p: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: F = None
        self.v: A = None
        self.o: C = None
        self.s: H = None
        self.x: G = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: G = None
        self.p: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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