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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: C = None
        self.p: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: A = None
        self.z: D = None
        self.t: B = None
        self.s: F = None
        self.p: G = None
        self.txt = txt

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

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

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

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

g = A("g")
d = B("d")
m = C("m")
j = D("j")
n = E("n")
l = F("l")
i = G("i")

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: C = None
        self.p: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: A = None
        self.z: D = None
        self.t: B = None
        self.s: F = None
        self.p: G = None
        self.txt = txt

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

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

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

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

g = A("g")
d = B("d")
m = C("m")
j = D("j")
n = E("n")
l = F("l")
i = G("i")

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