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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: I = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: I = None
        self.p: F = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: G = None
        self.r: A = None
        self.p: D = None
        self.w: B = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

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

g = A("g")
m = B("m")
f = C("f")
e = D("e")
c = E("c")
h = F("h")
a = G("a")
i = H("i")
k = I("k")
l = E("l")

g.q = h
g.w = h
g.p = a
g.o = k
g.t = f
g.u = f
g.y = m
m.q = k
m.s = c
f.s = m
f.t = k
e.z = f
e.s = m
e.u = a
c.p = k
h.o = i
h.y = k
h.x = g
a.y = h
a.p = h
a.q = k
a.x = g
i.y = e
i.p = e
i.x = a
i.r = g
i.s = g
i.w = m
i.u = l
k.q = h
k.y = a
l.p = k
assert e.z.s.s.p.q.x.q.txt == "
class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.p: G = None
        self.o: I = None
        self.t: C = None
        self.u: C = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: I = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: I = None
        self.p: F = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: G = None
        self.r: A = None
        self.p: D = None
        self.w: B = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

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

g = A("g")
m = B("m")
f = C("f")
e = D("e")
c = E("c")
h = F("h")
a = G("a")
i = H("i")
k = I("k")
l = E("l")

g.q = h
g.w = h
g.p = a
g.o = k
g.t = f
g.u = f
g.y = m
m.q = k
m.s = c
f.s = m
f.t = k
e.z = f
e.s = m
e.u = a
c.p = k
h.o = i
h.y = k
h.x = g
a.y = h
a.p = h
a.q = k
a.x = g
i.y = e
i.p = e
i.x = a
i.r = g
i.s = g
i.w = m
i.u = l
k.q = h
k.y = a
l.p = k
assert e.z.s.s.p.q.x.q.txt == "h"