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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: A = None
        self.p: D = None
        self.q: I = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: E = None
        self.s: A = None
        self.z: B = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: B = None
        self.y: B = None
        self.o: E = None
        self.q: F = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.y: B = None
        self.v: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.o: I = None
        self.x: B = None
        self.r: B = None
        self.t: I = None
        self.z: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: A = None
        self.p: D = None
        self.q: I = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: E = None
        self.s: A = None
        self.z: B = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: B = None
        self.y: B = None
        self.o: E = None
        self.q: F = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.y: B = None
        self.v: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.o: I = None
        self.x: B = None
        self.r: B = None
        self.t: I = None
        self.z: C = None
        self.txt = txt

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

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

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