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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: I = None
        self.o: F = None
        self.q: H = None
        self.u: F = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: A = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: I = None
        self.o: F = None
        self.q: H = None
        self.u: F = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: A = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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