class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

g = A("g")
n = B("n")
j = C("j")
m = D("m")
d = E("d")
b = F("b")
a = G("a")
l = H("l")
h = I("h")
k = D("k")

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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

g = A("g")
n = B("n")
j = C("j")
m = D("m")
d = E("d")
b = F("b")
a = G("a")
l = H("l")
h = I("h")
k = D("k")

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