class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: H = None
        self.r: F = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: C = None
        self.y: A = None
        self.x: C = None
        self.t: C = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

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

j = A("j")
g = B("g")
k = C("k")
e = D("e")
n = E("n")
m = F("m")
f = G("f")
d = H("d")
b = A("b")
i = E("i")

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: C = None
        self.y: A = None
        self.x: C = None
        self.t: C = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

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

j = A("j")
g = B("g")
k = C("k")
e = D("e")
n = E("n")
m = F("m")
f = G("f")
d = H("d")
b = A("b")
i = E("i")

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