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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: G = None
        self.t: G = None
        self.txt = txt

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

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

i = A("i")
m = B("m")
n = C("n")
f = D("f")
l = E("l")
c = F("c")
k = G("k")
b = E("b")
h = A("h")
j = F("j")

i.s = f
i.p = c
i.w = m
m.t = f
m.r = f
m.v = f
m.s = f
m.o = j
m.q = l
m.p = b
n.u = c
n.x = c
n.t = f
n.q = b
n.p = h
n.o = m
n.s = m
f.s = l
l.p = m
l.v = k
l.t = k
c.s = l
c.x = j
c.z = f
c.v = f
c.p = k
c.q = n
k.y = m
b.p = m
b.v = k
b.t = k
h.s = f
h.p = c
h.w = m
j.s = l
j.x = c
j.z = f
j.v = f
j.p = k
j.q = n
assert m.t.s.v.y.p.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: F = None
        self.w: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: G = None
        self.t: G = None
        self.txt = txt

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

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

i = A("i")
m = B("m")
n = C("n")
f = D("f")
l = E("l")
c = F("c")
k = G("k")
b = E("b")
h = A("h")
j = F("j")

i.s = f
i.p = c
i.w = m
m.t = f
m.r = f
m.v = f
m.s = f
m.o = j
m.q = l
m.p = b
n.u = c
n.x = c
n.t = f
n.q = b
n.p = h
n.o = m
n.s = m
f.s = l
l.p = m
l.v = k
l.t = k
c.s = l
c.x = j
c.z = f
c.v = f
c.p = k
c.q = n
k.y = m
b.p = m
b.v = k
b.t = k
h.s = f
h.p = c
h.w = m
j.s = l
j.x = c
j.z = f
j.v = f
j.p = k
j.q = n
assert m.t.s.v.y.p.txt == "b"