class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: G = None
        self.t: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: D = None
        self.w: D = None
        self.o: C = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: E = None
        self.x: F = None
        self.w: C = None
        self.v: F = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: A = None
        self.z: F = None
        self.v: D = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

b = A("b")
a = B("a")
m = C("m")
n = D("n")
g = E("g")
h = F("h")
l = G("l")
k = F("k")
d = F("d")
j = C("j")

b.v = n
b.o = l
b.t = m
a.v = n
a.x = n
a.w = n
a.r = n
a.o = j
m.z = n
m.r = g
m.x = h
m.v = h
m.w = j
m.t = a
m.y = d
n.o = b
n.x = j
g.r = n
g.v = n
g.s = b
g.z = h
g.u = k
h.s = m
h.y = b
h.z = b
h.p = b
h.r = n
h.v = a
l.y = d
k.s = m
k.y = b
k.z = b
k.p = b
k.r = n
k.v = a
d.s = m
d.y = b
d.z = b
d.p = b
d.r = n
d.v = a
j.z = n
j.r = g
j.x = d
j.w = m
j.v = h
j.t = a
j.y = k
assert g.z.y.v.x.txt == "
class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: G = None
        self.t: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: D = None
        self.w: D = None
        self.o: C = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: E = None
        self.x: F = None
        self.w: C = None
        self.v: F = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: A = None
        self.z: F = None
        self.v: D = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

b = A("b")
a = B("a")
m = C("m")
n = D("n")
g = E("g")
h = F("h")
l = G("l")
k = F("k")
d = F("d")
j = C("j")

b.v = n
b.o = l
b.t = m
a.v = n
a.x = n
a.w = n
a.r = n
a.o = j
m.z = n
m.r = g
m.x = h
m.v = h
m.w = j
m.t = a
m.y = d
n.o = b
n.x = j
g.r = n
g.v = n
g.s = b
g.z = h
g.u = k
h.s = m
h.y = b
h.z = b
h.p = b
h.r = n
h.v = a
l.y = d
k.s = m
k.y = b
k.z = b
k.p = b
k.r = n
k.v = a
d.s = m
d.y = b
d.z = b
d.p = b
d.r = n
d.v = a
j.z = n
j.r = g
j.x = d
j.w = m
j.v = h
j.t = a
j.y = k
assert g.z.y.v.x.txt == "j"