class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: F = None
        self.u: G = None
        self.w: F = None
        self.t: C = None
        self.v: C = None
        self.x: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: F = None
        self.z: B = None
        self.w: F = None
        self.x: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: F = None
        self.z: B = None
        self.w: F = None
        self.x: B = None
        self.txt = txt

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

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