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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: H = None
        self.q: C = None
        self.u: B = None
        self.s: F = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: G = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: E = None
        self.z: C = None
        self.o: C = None
        self.u: D = None
        self.txt = txt

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

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

j = A("j")
d = B("d")
a = C("a")
f = D("f")
g = E("g")
h = F("h")
n = G("n")
l = H("l")
k = B("k")
i = A("i")

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: H = None
        self.q: C = None
        self.u: B = None
        self.s: F = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: G = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: E = None
        self.z: C = None
        self.o: C = None
        self.u: D = None
        self.txt = txt

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

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

j = A("j")
d = B("d")
a = C("a")
f = D("f")
g = E("g")
h = F("h")
n = G("n")
l = H("l")
k = B("k")
i = A("i")

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