class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: F = None
        self.t: B = None
        self.v: D = None
        self.r: F = None
        self.x: G = None
        self.s: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: C = None
        self.v: C = None
        self.t: E = None
        self.u: C = None
        self.y: A = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: E = None
        self.v: E = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: C = None
        self.v: C = None
        self.t: E = None
        self.u: C = None
        self.y: A = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: E = None
        self.v: E = None
        self.s: F = None
        self.txt = txt

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

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