class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.y: C = None
        self.v: F = None
        self.u: E = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: G = None
        self.o: B = None
        self.v: E = None
        self.y: A = None
        self.t: D = None
        self.z: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: B = None
        self.t: G = None
        self.x: E = None
        self.w: D = None
        self.z: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: G = None
        self.o: B = None
        self.v: E = None
        self.y: A = None
        self.t: D = None
        self.z: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: B = None
        self.t: G = None
        self.x: E = None
        self.w: D = None
        self.z: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: A = None
        self.txt = txt

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

j.r = g
j.o = f
j.v = f
j.y = a
j.u = b
j.z = b
k.q = i
k.w = i
k.o = g
k.v = b
k.y = j
k.t = d
k.z = n
a.u = n
a.s = g
a.t = i
a.x = b
a.w = d
a.z = j
d.t = a
d.z = f
d.s = b
b.u = j
b.s = j
b.r = j
b.v = a
b.o = d
b.x = f
f.w = d
f.r = d
f.s = j
f.q = j
f.v = j
i.w = d
i.r = j
g.q = i
g.w = i
g.o = n
g.z = n
g.v = b
g.y = j
g.t = d
l.u = n
l.s = k
l.t = i
l.x = b
l.w = d
l.z = j
n.q = i
n.w = i
n.o = g
n.z = g
n.v = b
n.y = j
n.t = d
assert n.t.z.s.o.v.r.txt == "g"