class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: E = None
        self.r: B = None
        self.w: G = None
        self.z: F = None
        self.p: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: F = None
        self.q: F = None
        self.txt = txt

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

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

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

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

h = A("h")
m = B("m")
b = C("b")
k = D("k")
j = E("j")
e = F("e")
c = G("c")
n = A("n")
a = C("a")

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

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: F = None
        self.q: F = None
        self.txt = txt

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

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

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

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

h = A("h")
m = B("m")
b = C("b")
k = D("k")
j = E("j")
e = F("e")
c = G("c")
n = A("n")
a = C("a")

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