x
The value of the expression \( 27^7 - 3^{11} + 36 - x\) was written in the ternary number system, while the sum of the digits in the record turned out to be equal to b (entered from the keyboard, 0 < b < 100). Write a program that displays the minimum natural value of x. The answer is guaranteed to exist.
1000 ms 256 Mb Rules for program design and list of errors in automatic problem checking