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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

c = A("c")
j = B("j")
e = C("e")
m = D("m")
b = E("b")
h = F("h")
g = G("g")
d = B("d")
i = C("i")
l = C("l")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

c = A("c")
j = B("j")
e = C("e")
m = D("m")
b = E("b")
h = F("h")
g = G("g")
d = B("d")
i = C("i")
l = C("l")

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