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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.o: G = None
        self.q: F = None
        self.w: G = None
        self.s: B = None
        self.p: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: C = None
        self.z: A = None
        self.u: G = None
        self.p: G = None
        self.x: G = None
        self.v: C = None
        self.txt = txt

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

c = A("c")
e = B("e")
j = C("j")
d = D("d")
i = E("i")
n = F("n")
f = G("f")
m = B("m")

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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.o: G = None
        self.q: F = None
        self.w: G = None
        self.s: B = None
        self.p: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: C = None
        self.z: A = None
        self.u: G = None
        self.p: G = None
        self.x: G = None
        self.v: C = None
        self.txt = txt

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

c = A("c")
e = B("e")
j = C("j")
d = D("d")
i = E("i")
n = F("n")
f = G("f")
m = B("m")

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