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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: C = None
        self.r: A = None
        self.u: I = None
        self.t: E = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: C = None
        self.r: A = None
        self.u: I = None
        self.t: E = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

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