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

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: I = None
        self.s: E = None
        self.u: I = None
        self.x: G = None
        self.v: H = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: G = None
        self.o: G = None
        self.t: C = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: I = None
        self.s: E = None
        self.u: I = None
        self.x: G = None
        self.v: H = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: G = None
        self.o: G = None
        self.t: C = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: G = None
        self.txt = txt

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

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