class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: E = None
        self.z: C = None
        self.v: E = None
        self.x: F = None
        self.w: H = None
        self.r: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: C = None
        self.r: H = None
        self.p: D = None
        self.y: I = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: E = None
        self.z: C = None
        self.r: E = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: I = None
        self.y: G = None
        self.r: E = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: C = None
        self.r: H = None
        self.p: D = None
        self.y: I = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: E = None
        self.z: C = None
        self.r: E = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: I = None
        self.y: G = None
        self.r: E = None
        self.o: E = None
        self.txt = txt

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

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

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