class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: G = None
        self.x: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: H = None
        self.v: F = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: C = None
        self.v: A = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: H = None
        self.v: F = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: C = None
        self.v: A = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: B = None
        self.txt = txt

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

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

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