class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: B = None
        self.x: F = None
        self.t: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: E = None
        self.r: E = None
        self.w: A = None
        self.q: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: E = None
        self.u: D = None
        self.p: B = None
        self.q: G = None
        self.t: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: E = None
        self.r: E = None
        self.w: A = None
        self.q: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: E = None
        self.u: D = None
        self.p: B = None
        self.q: G = None
        self.t: F = None
        self.txt = txt

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

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