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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: G = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: D = None
        self.y: A = None
        self.v: D = None
        self.z: F = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: D = None
        self.y: C = None
        self.t: B = None
        self.o: E = None
        self.z: E = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: G = None
        self.v: D = None
        self.z: D = None
        self.x: G = None
        self.txt = txt

e = A("e")
g = B("g")
n = C("n")
b = D("b")
j = E("j")
a = F("a")
i = G("i")
h = D("h")
m = E("m")
k = G("k")

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: G = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: D = None
        self.y: A = None
        self.v: D = None
        self.z: F = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: D = None
        self.y: C = None
        self.t: B = None
        self.o: E = None
        self.z: E = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: G = None
        self.v: D = None
        self.z: D = None
        self.x: G = None
        self.txt = txt

e = A("e")
g = B("g")
n = C("n")
b = D("b")
j = E("j")
a = F("a")
i = G("i")
h = D("h")
m = E("m")
k = G("k")

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