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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: F = None
        self.w: A = None
        self.p: E = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: E = None
        self.v: A = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: G = None
        self.x: F = None
        self.w: G = None
        self.y: G = None
        self.t: D = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: A = None
        self.r: A = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.txt = txt

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

f = A("f")
c = B("c")
n = C("n")
i = D("i")
m = E("m")
k = F("k")
e = G("e")
d = B("d")
b = D("b")
j = G("j")

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: F = None
        self.w: A = None
        self.p: E = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: E = None
        self.v: A = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: G = None
        self.x: F = None
        self.w: G = None
        self.y: G = None
        self.t: D = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: A = None
        self.r: A = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.txt = txt

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

f = A("f")
c = B("c")
n = C("n")
i = D("i")
m = E("m")
k = F("k")
e = G("e")
d = B("d")
b = D("b")
j = G("j")

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