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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: H = None
        self.p: E = None
        self.y: G = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: H = None
        self.p: E = None
        self.y: G = None
        self.o: H = None
        self.txt = txt

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

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

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

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