class A:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: A = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: F = None
        self.w: A = None
        self.v: F = None
        self.z: F = None
        self.t: A = None
        self.r: F = None
        self.q: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: F = None
        self.w: A = None
        self.v: F = None
        self.z: F = None
        self.t: A = None
        self.r: F = None
        self.q: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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