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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: D = None
        self.txt = txt

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

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