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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: F = None
        self.y: B = None
        self.p: A = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: D = None
        self.p: F = None
        self.y: H = None
        self.u: B = None
        self.w: A = None
        self.s: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: F = None
        self.y: B = None
        self.p: A = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: D = None
        self.p: F = None
        self.y: H = None
        self.u: B = None
        self.w: A = None
        self.s: C = None
        self.txt = txt

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

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