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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: E = None
        self.q: D = None
        self.z: G = None
        self.s: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: A = None
        self.w: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: E = None
        self.q: D = None
        self.z: G = None
        self.s: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: A = None
        self.w: E = None
        self.txt = txt

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

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

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