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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: B = None
        self.x: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: B = None
        self.x: B = None
        self.txt = txt

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

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

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