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

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

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: G = None
        self.v: B = None
        self.t: A = None
        self.z: I = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: I = None
        self.w: G = None
        self.u: A = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: B = None
        self.s: D = None
        self.r: E = None
        self.v: I = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: G = None
        self.v: B = None
        self.t: A = None
        self.z: I = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: I = None
        self.w: G = None
        self.u: A = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: B = None
        self.s: D = None
        self.r: E = None
        self.v: I = None
        self.txt = txt

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

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

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

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

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