class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: B = None
        self.w: H = None
        self.o: C = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: G = None
        self.y: A = None
        self.t: E = None
        self.p: H = None
        self.o: H = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: E = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: D = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: G = None
        self.y: A = None
        self.t: E = None
        self.p: H = None
        self.o: H = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: E = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: D = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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