class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: G = None
        self.s: F = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: G = None
        self.x: D = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: A = None
        self.x: A = None
        self.u: F = None
        self.v: F = None
        self.w: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: G = None
        self.x: D = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: A = None
        self.x: A = None
        self.u: F = None
        self.v: F = None
        self.w: F = None
        self.txt = txt

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

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