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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: F = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: A = None
        self.q: A = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: H = None
        self.y: G = None
        self.z: B = None
        self.p: F = None
        self.v: B = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: A = None
        self.r: B = None
        self.u: H = None
        self.v: B = None
        self.y: G = None
        self.p: G = None
        self.o: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

g = A("g")
j = B("j")
n = C("n")
e = D("e")
a = E("a")
l = F("l")
b = G("b")
m = H("m")

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: F = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: A = None
        self.q: A = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: H = None
        self.y: G = None
        self.z: B = None
        self.p: F = None
        self.v: B = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: A = None
        self.r: B = None
        self.u: H = None
        self.v: B = None
        self.y: G = None
        self.p: G = None
        self.o: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

g = A("g")
j = B("j")
n = C("n")
e = D("e")
a = E("a")
l = F("l")
b = G("b")
m = H("m")

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