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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: H = None
        self.x: C = None
        self.y: F = None
        self.w: E = None
        self.u: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: D = None
        self.v: H = None
        self.w: H = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: F = None
        self.x: C = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: G = None
        self.o: C = None
        self.w: H = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: H = None
        self.x: C = None
        self.y: F = None
        self.w: E = None
        self.u: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: D = None
        self.v: H = None
        self.w: H = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: F = None
        self.x: C = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: G = None
        self.o: C = None
        self.w: H = None
        self.y: A = None
        self.txt = txt

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

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