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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.q: F = None
        self.r: D = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: D = None
        self.q: A = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: F = None
        self.v: A = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.q: F = None
        self.r: D = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: D = None
        self.q: A = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: F = None
        self.v: A = None
        self.x: G = None
        self.txt = txt

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

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