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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: B = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: B = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

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