class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: H = None
        self.q: C = None
        self.v: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.s: A = None
        self.z: C = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: H = None
        self.q: D = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: F = None
        self.w: E = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: D = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.s: A = None
        self.z: C = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: H = None
        self.q: D = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: F = None
        self.w: E = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: D = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

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

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