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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: A = None
        self.v: F = None
        self.q: F = None
        self.u: F = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: B = None
        self.z: B = None
        self.x: B = None
        self.o: B = None
        self.y: B = None
        self.txt = txt

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

h = A("h")
k = B("k")
c = C("c")
i = D("i")
a = E("a")
l = F("l")
m = G("m")
f = C("f")
e = D("e")

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: A = None
        self.v: F = None
        self.q: F = None
        self.u: F = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: B = None
        self.z: B = None
        self.x: B = None
        self.o: B = None
        self.y: B = None
        self.txt = txt

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

h = A("h")
k = B("k")
c = C("c")
i = D("i")
a = E("a")
l = F("l")
m = G("m")
f = C("f")
e = D("e")

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