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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: H = None
        self.r: F = None
        self.q: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: H = None
        self.r: F = None
        self.q: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: C = None
        self.txt = txt

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

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