/* package whatever; // don't place package name! */
import java.util.Scanner;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int n, m;
double k;
Scanner scan
= new Scanner
(System.
in); n = scan.nextInt();
while (m != k){
n
= (int)(n
- (Math.
pow(2,m
))); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwogCmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwogCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IG4sIG07CgkJZG91YmxlIGs7CgkJU2Nhbm5lciBzY2FuID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKICAgIAluID0gc2Nhbi5uZXh0SW50KCk7CiAgICAJbSA9IChpbnQpKE1hdGgubG9nKG4pL01hdGgubG9nKDIpKTsKCQlrID0gKGRvdWJsZSkoTWF0aC5sb2cobikvTWF0aC5sb2coMikpOwogICAgCXdoaWxlIChtICE9IGspewogICAgICAgIAluID0gKGludCkobiAtIChNYXRoLnBvdygyLG0pKSk7CiAgICAgICAgCW0gPSAoaW50KShNYXRoLmxvZyhuKS9NYXRoLmxvZygyKSk7CiAgICAgICAgCWsgPSAoZG91YmxlKShNYXRoLmxvZyhuKS9NYXRoLmxvZygyKSk7CiAgICAJfQogICAgU3lzdGVtLm91dC5wcmludChtICsgMSk7Cgl9Cn0=