class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: H = None
        self.u: D = None
        self.q: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

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