class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: I = None
        self.s: G = None
        self.p: B = None
        self.x: C = None
        self.o: H = None
        self.y: D = None
        self.z: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.u: B = None
        self.o: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.w: C = None
        self.t: D = None
        self.r: I = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.u: B = None
        self.o: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.w: C = None
        self.t: D = None
        self.r: I = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

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